mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 02:29:32 +00:00
move options, add doc
This commit is contained in:
parent
c43557d4ed
commit
1f1f2c5a68
|
@ -100,6 +100,7 @@ Short options:
|
||||||
-mm model Set the memory model
|
-mm model Set the memory model
|
||||||
-o name Name the output file
|
-o name Name the output file
|
||||||
-s Enable smart mode
|
-s Enable smart mode
|
||||||
|
-S Generate segment offsets in listing
|
||||||
-t sys Set the target system
|
-t sys Set the target system
|
||||||
-v Increase verbosity
|
-v Increase verbosity
|
||||||
|
|
||||||
|
@ -121,6 +122,7 @@ Long options:
|
||||||
--memory-model model Set the memory model
|
--memory-model model Set the memory model
|
||||||
--pagelength n Set the page length for the listing
|
--pagelength n Set the page length for the listing
|
||||||
--relax-checks Disables some error checks
|
--relax-checks Disables some error checks
|
||||||
|
--segment-list Generate segment offsets in listing
|
||||||
--smart Enable smart mode
|
--smart Enable smart mode
|
||||||
--target sys Set the target system
|
--target sys Set the target system
|
||||||
--verbose Increase verbosity
|
--verbose Increase verbosity
|
||||||
|
|
|
@ -105,9 +105,9 @@ static void Usage (void)
|
||||||
" -mm model\t\t\tSet the memory model\n"
|
" -mm model\t\t\tSet the memory model\n"
|
||||||
" -o name\t\t\tName the output file\n"
|
" -o name\t\t\tName the output file\n"
|
||||||
" -s\t\t\t\tEnable smart mode\n"
|
" -s\t\t\t\tEnable smart mode\n"
|
||||||
|
" -S\t\t\t\tEnable segment offset listing\n"
|
||||||
" -t sys\t\t\tSet the target system\n"
|
" -t sys\t\t\tSet the target system\n"
|
||||||
" -v\t\t\t\tIncrease verbosity\n"
|
" -v\t\t\t\tIncrease verbosity\n"
|
||||||
" -S\t\t\t\tEnable segment offset listing\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"Long options:\n"
|
"Long options:\n"
|
||||||
" --auto-import\t\t\tMark unresolved symbols as import\n"
|
" --auto-import\t\t\tMark unresolved symbols as import\n"
|
||||||
|
@ -127,11 +127,11 @@ static void Usage (void)
|
||||||
" --memory-model model\t\tSet the memory model\n"
|
" --memory-model model\t\tSet the memory model\n"
|
||||||
" --pagelength n\t\tSet the page length for the listing\n"
|
" --pagelength n\t\tSet the page length for the listing\n"
|
||||||
" --relax-checks\t\tRelax some checks (see docs)\n"
|
" --relax-checks\t\tRelax some checks (see docs)\n"
|
||||||
|
" --segment-list\t\tEnable segment offset listing\n"
|
||||||
" --smart\t\t\tEnable smart mode\n"
|
" --smart\t\t\tEnable smart mode\n"
|
||||||
" --target sys\t\t\tSet the target system\n"
|
" --target sys\t\t\tSet the target system\n"
|
||||||
" --verbose\t\t\tIncrease verbosity\n"
|
" --verbose\t\t\tIncrease verbosity\n"
|
||||||
" --version\t\t\tPrint the assembler version\n"
|
" --version\t\t\tPrint the assembler version\n",
|
||||||
" --segment-list\t\tEnable segment offset listing\n",
|
|
||||||
ProgName);
|
ProgName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -964,12 +964,12 @@ int main (int argc, char* argv [])
|
||||||
{ "--memory-model", 1, OptMemoryModel },
|
{ "--memory-model", 1, OptMemoryModel },
|
||||||
{ "--pagelength", 1, OptPageLength },
|
{ "--pagelength", 1, OptPageLength },
|
||||||
{ "--relax-checks", 0, OptRelaxChecks },
|
{ "--relax-checks", 0, OptRelaxChecks },
|
||||||
|
{ "--segment-list", 0, OptSeglist },
|
||||||
{ "--smart", 0, OptSmart },
|
{ "--smart", 0, OptSmart },
|
||||||
{ "--target", 1, OptTarget },
|
{ "--target", 1, OptTarget },
|
||||||
{ "--verbose", 0, OptVerbose },
|
{ "--verbose", 0, OptVerbose },
|
||||||
{ "--version", 0, OptVersion },
|
{ "--version", 0, OptVersion },
|
||||||
{ "--warnings-as-errors", 0, OptWarningsAsErrors },
|
{ "--warnings-as-errors", 0, OptWarningsAsErrors },
|
||||||
{ "--segment-list", 0, OptSeglist },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Name of the global name space */
|
/* Name of the global name space */
|
||||||
|
@ -1049,7 +1049,11 @@ int main (int argc, char* argv [])
|
||||||
case 's':
|
case 's':
|
||||||
OptSmart (Arg, 0);
|
OptSmart (Arg, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'S':
|
||||||
|
OptSeglist (Arg, 0);
|
||||||
|
break;
|
||||||
|
|
||||||
case 't':
|
case 't':
|
||||||
OptTarget (Arg, GetArg (&I, 2));
|
OptTarget (Arg, GetArg (&I, 2));
|
||||||
break;
|
break;
|
||||||
|
@ -1078,9 +1082,7 @@ int main (int argc, char* argv [])
|
||||||
WarnLevel = atoi (GetArg (&I, 2));
|
WarnLevel = atoi (GetArg (&I, 2));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'S':
|
|
||||||
OptSeglist (Arg, 0);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
UnknownOption (Arg);
|
UnknownOption (Arg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user