mirror of
https://github.com/cc65/cc65.git
synced 2024-07-11 14:29:11 +00:00
Command line options cleanup
git-svn-id: svn://svn.cc65.org/cc65/trunk@974 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
e0e1515a72
commit
4c87acbcc2
@ -75,13 +75,6 @@ static void Usage (void)
|
|||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"Usage: %s [options] file\n"
|
"Usage: %s [options] file\n"
|
||||||
"Short options:\n"
|
"Short options:\n"
|
||||||
" -d\t\t\tDebug mode\n"
|
|
||||||
" -g\t\t\tAdd debug info to object file\n"
|
|
||||||
" -h\t\t\tHelp (this text)\n"
|
|
||||||
" -j\t\t\tDefault characters are signed\n"
|
|
||||||
" -o name\t\tName the output file\n"
|
|
||||||
" -t sys\t\tSet the target system\n"
|
|
||||||
" -v\t\t\tIncrease verbosity\n"
|
|
||||||
" -A\t\t\tStrict ANSI mode\n"
|
" -A\t\t\tStrict ANSI mode\n"
|
||||||
" -Cl\t\t\tMake local variables static\n"
|
" -Cl\t\t\tMake local variables static\n"
|
||||||
" -Dsym[=defn]\t\tDefine a symbol\n"
|
" -Dsym[=defn]\t\tDefine a symbol\n"
|
||||||
@ -93,14 +86,23 @@ static void Usage (void)
|
|||||||
" -T\t\t\tInclude source as comment\n"
|
" -T\t\t\tInclude source as comment\n"
|
||||||
" -V\t\t\tPrint the compiler version number\n"
|
" -V\t\t\tPrint the compiler version number\n"
|
||||||
" -W\t\t\tSuppress warnings\n"
|
" -W\t\t\tSuppress warnings\n"
|
||||||
|
" -d\t\t\tDebug mode\n"
|
||||||
|
" -g\t\t\tAdd debug info to object file\n"
|
||||||
|
" -h\t\t\tHelp (this text)\n"
|
||||||
|
" -j\t\t\tDefault characters are signed\n"
|
||||||
|
" -o name\t\tName the output file\n"
|
||||||
|
" -t sys\t\tSet the target system\n"
|
||||||
|
" -v\t\t\tIncrease verbosity\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Long options:\n"
|
"Long options:\n"
|
||||||
|
" --add-source\t\tInclude source as comment\n"
|
||||||
" --ansi\t\tStrict ANSI mode\n"
|
" --ansi\t\tStrict ANSI mode\n"
|
||||||
" --bss-name seg\tSet the name of the BSS segment\n"
|
" --bss-name seg\tSet the name of the BSS segment\n"
|
||||||
" --check-stack\t\tGenerate stack overflow checks\n"
|
" --check-stack\t\tGenerate stack overflow checks\n"
|
||||||
" --code-name seg\tSet the name of the CODE segment\n"
|
" --code-name seg\tSet the name of the CODE segment\n"
|
||||||
" --codesize x\t\tAccept larger code by factor x\n"
|
" --codesize x\t\tAccept larger code by factor x\n"
|
||||||
" --cpu type\t\tSet cpu type\n"
|
" --cpu type\t\tSet cpu type\n"
|
||||||
|
" --create-dep\t\tCreate a make dependency file\n"
|
||||||
" --data-name seg\tSet the name of the DATA segment\n"
|
" --data-name seg\tSet the name of the DATA segment\n"
|
||||||
" --debug\t\tDebug mode\n"
|
" --debug\t\tDebug mode\n"
|
||||||
" --debug-info\t\tAdd debug info to object file\n"
|
" --debug-info\t\tAdd debug info to object file\n"
|
||||||
@ -293,7 +295,7 @@ static void OptAnsi (const char* Opt, const char* Arg)
|
|||||||
|
|
||||||
static void OptBssName (const char* Opt, const char* Arg)
|
static void OptBssName (const char* Opt, const char* Arg)
|
||||||
/* Handle the --bss-name option */
|
/* Handle the --bss-name option */
|
||||||
{
|
{
|
||||||
/* Check for a valid name */
|
/* Check for a valid name */
|
||||||
CheckSegName (Arg);
|
CheckSegName (Arg);
|
||||||
|
|
||||||
@ -359,7 +361,7 @@ static void OptCPU (const char* Opt, const char* Arg)
|
|||||||
|
|
||||||
|
|
||||||
static void OptDataName (const char* Opt, const char* Arg)
|
static void OptDataName (const char* Opt, const char* Arg)
|
||||||
/* Handle the --code-name option */
|
/* Handle the --data-name option */
|
||||||
{
|
{
|
||||||
/* Check for a valid name */
|
/* Check for a valid name */
|
||||||
CheckSegName (Arg);
|
CheckSegName (Arg);
|
||||||
@ -562,8 +564,8 @@ int main (int argc, char* argv[])
|
|||||||
{ "--check-stack", 0, OptCheckStack },
|
{ "--check-stack", 0, OptCheckStack },
|
||||||
{ "--code-name", 1, OptCodeName },
|
{ "--code-name", 1, OptCodeName },
|
||||||
{ "--codesize", 1, OptCodeSize },
|
{ "--codesize", 1, OptCodeSize },
|
||||||
{ "--create-dep", 0, OptCreateDep },
|
|
||||||
{ "--cpu", 1, OptCPU },
|
{ "--cpu", 1, OptCPU },
|
||||||
|
{ "--create-dep", 0, OptCreateDep },
|
||||||
{ "--data-name", 1, OptDataName },
|
{ "--data-name", 1, OptDataName },
|
||||||
{ "--debug", 0, OptDebug },
|
{ "--debug", 0, OptDebug },
|
||||||
{ "--debug-info", 0, OptDebugInfo },
|
{ "--debug-info", 0, OptDebugInfo },
|
||||||
|
Loading…
Reference in New Issue
Block a user