Output the help text to stdout

git-svn-id: svn://svn.cc65.org/cc65/trunk@3414 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2005-03-24 20:08:41 +00:00
parent 137b66ac97
commit 8a6fdb8562
9 changed files with 282 additions and 290 deletions

View File

@@ -60,15 +60,14 @@
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s <operation> lib file|module ...\n"
"Usage: %s <operation> lib file|module ...\n" "Operation is one of:\n"
"Operation is one of:\n" "\ta\tAdd modules\n"
"\ta\tAdd modules\n" "\td\tDelete modules\n"
"\td\tDelete modules\n" "\tl\tList library contents\n"
"\tl\tList library contents\n" "\tx\tExtract modules\n"
"\tx\tExtract modules\n" "\tV\tPrint the archiver version\n",
"\tV\tPrint the archiver version\n", ProgName);
ProgName);
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }

View File

@@ -84,41 +84,40 @@
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s [options] file\n"
"Usage: %s [options] file\n" "Short options:\n"
"Short options:\n" " -D name[=value]\tDefine a symbol\n"
" -D name[=value]\tDefine a symbol\n" " -I dir\t\tSet an include directory search path\n"
" -I dir\t\tSet an include directory search path\n" " -U\t\t\tMark unresolved symbols as import\n"
" -U\t\t\tMark unresolved symbols as import\n" " -V\t\t\tPrint the assembler version\n"
" -V\t\t\tPrint the assembler version\n" " -W n\t\t\tSet warning level n\n"
" -W n\t\t\tSet warning level n\n" " -g\t\t\tAdd debug info to object file\n"
" -g\t\t\tAdd debug info to object file\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -i\t\t\tIgnore case of symbols\n"
" -i\t\t\tIgnore case of symbols\n" " -l\t\t\tCreate a listing if assembly was ok\n"
" -l\t\t\tCreate a listing if assembly was ok\n" " -mm model\t\tSet the memory model\n"
" -mm model\t\tSet the memory model\n" " -o name\t\tName the output file\n"
" -o name\t\tName the output file\n" " -s\t\t\tEnable smart mode\n"
" -s\t\t\tEnable smart mode\n" " -t sys\t\tSet the target system\n"
" -t sys\t\tSet the target system\n" " -v\t\t\tIncrease verbosity\n"
" -v\t\t\tIncrease verbosity\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --auto-import\t\tMark unresolved symbols as import\n"
" --auto-import\t\tMark unresolved symbols as import\n" " --cpu type\t\tSet cpu type\n"
" --cpu type\t\tSet cpu type\n" " --debug-info\t\tAdd debug info to object file\n"
" --debug-info\t\tAdd debug info to object file\n" " --feature name\tSet an emulation feature\n"
" --feature name\tSet an emulation feature\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --ignore-case\t\tIgnore case of symbols\n"
" --ignore-case\t\tIgnore case of symbols\n" " --include-dir dir\tSet an include directory search path\n"
" --include-dir dir\tSet an include directory search path\n" " --listing\t\tCreate a listing if assembly was ok\n"
" --listing\t\tCreate a listing if assembly was ok\n" " --list-bytes n\tMaximum number of bytes per listing line\n"
" --list-bytes n\tMaximum number of bytes per listing line\n" " --memory-model model\tSet the memory model\n"
" --memory-model model\tSet the memory model\n" " --pagelength n\tSet the page length for the listing\n"
" --pagelength n\tSet the page length for the listing\n" " --smart\t\tEnable smart mode\n"
" --smart\t\tEnable smart mode\n" " --target sys\t\tSet the target system\n"
" --target sys\t\tSet the target system\n" " --verbose\t\tIncrease verbosity\n"
" --verbose\t\tIncrease verbosity\n" " --version\t\tPrint the assembler version\n",
" --version\t\tPrint the assembler version\n", ProgName);
ProgName);
} }

View File

@@ -77,60 +77,59 @@
static void Usage (void) static void Usage (void)
/* Print usage information to stderr */ /* Print usage information to stderr */
{ {
fprintf (stderr, printf ("Usage: %s [options] file\n"
"Usage: %s [options] file\n" "Short options:\n"
"Short options:\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" " -E\t\t\tStop after the preprocessing stage\n"
" -E\t\t\tStop after the preprocessing stage\n" " -I dir\t\tSet an include directory search path\n"
" -I dir\t\tSet an include directory search path\n" " -O\t\t\tOptimize code\n"
" -O\t\t\tOptimize code\n" " -Oi\t\t\tOptimize code, inline more code\n"
" -Oi\t\t\tOptimize code, inline more code\n" " -Or\t\t\tEnable register variables\n"
" -Or\t\t\tEnable register variables\n" " -Os\t\t\tInline some known functions\n"
" -Os\t\t\tInline some known functions\n" " -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"
" -d\t\t\tDebug mode\n" " -g\t\t\tAdd debug info to object file\n"
" -g\t\t\tAdd debug info to object file\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -j\t\t\tDefault characters are signed\n"
" -j\t\t\tDefault characters are signed\n" " -mm model\t\tSet the memory model\n"
" -mm model\t\tSet the memory model\n" " -o name\t\tName the output file\n"
" -o name\t\tName the output file\n" " -r\t\t\tEnable register variables\n"
" -r\t\t\tEnable register variables\n" " -t sys\t\tSet the target system\n"
" -t sys\t\tSet the target system\n" " -v\t\t\tIncrease verbosity\n"
" -v\t\t\tIncrease verbosity\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --add-source\t\tInclude source as comment\n"
" --add-source\t\tInclude source as comment\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 (6502, 65c02)\n"
" --cpu type\t\tSet cpu type (6502, 65c02)\n" " --create-dep\t\tCreate a make dependency file\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" " --debug-opt name\tDebug optimization steps\n"
" --debug-opt name\tDebug optimization steps\n" " --disable-opt name\tDisable an optimization step\n"
" --disable-opt name\tDisable an optimization step\n" " --enable-opt name\tEnable an optimization step\n"
" --enable-opt name\tEnable an optimization step\n" " --forget-inc-paths\tForget include search paths\n"
" --forget-inc-paths\tForget include search paths\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --include-dir dir\tSet an include directory search path\n"
" --include-dir dir\tSet an include directory search path\n" " --list-opt-steps\tList all optimizer steps and exit\n"
" --list-opt-steps\tList all optimizer steps and exit\n" " --memory-model model\tSet the memory model\n"
" --memory-model model\tSet the memory model\n" " --register-space b\tSet space available for register variables\n"
" --register-space b\tSet space available for register variables\n" " --register-vars\tEnable register variables\n"
" --register-vars\tEnable register variables\n" " --rodata-name seg\tSet the name of the RODATA segment\n"
" --rodata-name seg\tSet the name of the RODATA segment\n" " --signed-chars\tDefault characters are signed\n"
" --signed-chars\tDefault characters are signed\n" " --standard std\tLanguage standard (c89, c99, cc65)\n"
" --standard std\tLanguage standard (c89, c99, cc65)\n" " --static-locals\tMake local variables static\n"
" --static-locals\tMake local variables static\n" " --target sys\t\tSet the target system\n"
" --target sys\t\tSet the target system\n" " --verbose\t\tIncrease verbosity\n"
" --verbose\t\tIncrease verbosity\n" " --version\t\tPrint the compiler version number\n"
" --version\t\tPrint the compiler version number\n" " --writable-strings\tMake string literals writable\n",
" --writable-strings\tMake string literals writable\n", ProgName);
ProgName);
} }

View File

@@ -588,83 +588,82 @@ static void ConvertO65 (const char* File)
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s [options] file [...]\n"
"Usage: %s [options] file [...]\n" "Short options:\n"
"Short options:\n" " -c\t\t\tCompile and assemble but don't link\n"
" -c\t\t\tCompile and assemble but don't link\n" " -d\t\t\tDebug mode\n"
" -d\t\t\tDebug mode\n" " -g\t\t\tAdd debug info\n"
" -g\t\t\tAdd debug info\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -l\t\t\tCreate an assembler listing\n"
" -l\t\t\tCreate an assembler listing\n" " -m name\t\tCreate a map file\n"
" -m name\t\tCreate a map file\n" " -mm model\t\tSet the memory model\n"
" -mm model\t\tSet the memory model\n" " -o name\t\tName the output file\n"
" -o name\t\tName the output file\n" " -r\t\t\tEnable register variables\n"
" -r\t\t\tEnable register variables\n" " -t sys\t\tSet the target system\n"
" -t sys\t\tSet the target system\n" " -v\t\t\tVerbose mode\n"
" -v\t\t\tVerbose mode\n" " -vm\t\t\tVerbose map file\n"
" -vm\t\t\tVerbose map file\n" " -C name\t\tUse linker config file\n"
" -C name\t\tUse linker config file\n" " -Cl\t\t\tMake local variables static\n"
" -Cl\t\t\tMake local variables static\n" " -D sym[=defn]\t\tDefine a preprocessor symbol\n"
" -D sym[=defn]\t\tDefine a preprocessor symbol\n" " -I dir\t\tSet a compiler include directory path\n"
" -I dir\t\tSet a compiler include directory path\n" " -L path\t\tSpecify a library search path\n"
" -L path\t\tSpecify a library search path\n" " -Ln name\t\tCreate a VICE label file\n"
" -Ln name\t\tCreate a VICE label file\n" " -O\t\t\tOptimize code\n"
" -O\t\t\tOptimize code\n" " -Oi\t\t\tOptimize code, inline functions\n"
" -Oi\t\t\tOptimize code, inline functions\n" " -Or\t\t\tOptimize code, honour the register keyword\n"
" -Or\t\t\tOptimize code, honour the register keyword\n" " -Os\t\t\tOptimize code, inline known C funtions\n"
" -Os\t\t\tOptimize code, inline known C funtions\n" " -S\t\t\tCompile but don't assemble and link\n"
" -S\t\t\tCompile but don't assemble and link\n" " -T\t\t\tInclude source as comment\n"
" -T\t\t\tInclude source as comment\n" " -V\t\t\tPrint the version number\n"
" -V\t\t\tPrint the version number\n" " -W\t\t\tSuppress warnings\n"
" -W\t\t\tSuppress warnings\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --add-source\t\tInclude source as comment\n"
" --add-source\t\tInclude source as comment\n" " --asm-define sym[=v]\tDefine an assembler symbol\n"
" --asm-define sym[=v]\tDefine an assembler symbol\n" " --asm-include-dir dir\tSet an assembler include directory\n"
" --asm-include-dir dir\tSet an assembler include directory\n" " --bss-label name\tDefine and export a BSS segment label\n"
" --bss-label name\tDefine and export a BSS segment label\n" " --bss-name seg\tSet the name of the BSS segment\n"
" --bss-name seg\tSet the name of the BSS segment\n" " --cfg-path path\tSpecify a config file search path\n"
" --cfg-path path\tSpecify a config file search path\n" " --check-stack\t\tGenerate stack overflow checks\n"
" --check-stack\t\tGenerate stack overflow checks\n" " --code-label name\tDefine and export a CODE segment label\n"
" --code-label name\tDefine and export a CODE segment label\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" " --config name\t\tUse linker config file\n"
" --config name\t\tUse linker config file\n" " --cpu type\t\tSet cpu type\n"
" --cpu type\t\tSet cpu type\n" " --create-dep\t\tCreate a make dependency file\n"
" --create-dep\t\tCreate a make dependency file\n" " --data-label name\tDefine and export a DATA segment label\n"
" --data-label name\tDefine and export a DATA segment label\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\n"
" --debug-info\t\tAdd debug info\n" " --feature name\tSet an emulation feature\n"
" --feature name\tSet an emulation feature\n" " --forget-inc-paths\tForget include search paths (compiler)\n"
" --forget-inc-paths\tForget include search paths (compiler)\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --include-dir dir\tSet a compiler include directory path\n"
" --include-dir dir\tSet a compiler include directory path\n" " --lib file\t\tLink this library\n"
" --lib file\t\tLink this library\n" " --lib-path path\tSpecify a library search path\n"
" --lib-path path\tSpecify a library search path\n" " --list-targets\tList all available targets\n"
" --list-targets\tList all available targets\n" " --listing\t\tCreate an assembler listing\n"
" --listing\t\tCreate an assembler listing\n" " --list-bytes n\tNumber of bytes per assembler listing line\n"
" --list-bytes n\tNumber of bytes per assembler listing line\n" " --mapfile name\tCreate a map file\n"
" --mapfile name\tCreate a map file\n" " --memory-model model\tSet the memory model\n"
" --memory-model model\tSet the memory model\n" " --module\t\tLink as a module\n"
" --module\t\tLink as a module\n" " --module-id id\tSpecify a module id for the linker\n"
" --module-id id\tSpecify a module id for the linker\n" " --o65-model model\tOverride the o65 model\n"
" --o65-model model\tOverride the o65 model\n" " --obj file\t\tLink this object file\n"
" --obj file\t\tLink this object file\n" " --obj-path path\tSpecify an object file search path\n"
" --obj-path path\tSpecify an object file search path\n" " --register-space b\tSet space available for register variables\n"
" --register-space b\tSet space available for register variables\n" " --register-vars\tEnable register variables\n"
" --register-vars\tEnable register variables\n" " --rodata-name seg\tSet the name of the RODATA segment\n"
" --rodata-name seg\tSet the name of the RODATA segment\n" " --signed-chars\tDefault characters are signed\n"
" --signed-chars\tDefault characters are signed\n" " --standard std\tLanguage standard (c89, c99, cc65)\n"
" --standard std\tLanguage standard (c89, c99, cc65)\n" " --start-addr addr\tSet the default start address\n"
" --start-addr addr\tSet the default start address\n" " --static-locals\tMake local variables static\n"
" --static-locals\tMake local variables static\n" " --target sys\t\tSet the target system\n"
" --target sys\t\tSet the target system\n" " --version\t\tPrint the version number\n"
" --version\t\tPrint the version number\n" " --verbose\t\tVerbose mode\n"
" --verbose\t\tVerbose mode\n" " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
" --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
" --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", ProgName);
ProgName);
} }
@@ -830,7 +829,7 @@ static void OptFeature (const char* Opt attribute ((unused)), const char* Arg)
static void OptForgetIncPaths (const char* Opt attribute ((unused)), static void OptForgetIncPaths (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused))) const char* Arg attribute ((unused)))
/* Forget all currently defined include paths */ /* Forget all currently defined include paths */
{ {

View File

@@ -68,33 +68,32 @@
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s [options] file\n"
"Usage: %s [options] file\n" "Short options:\n"
"Short options:\n" " -V\t\t\tPrint the version number\n"
" -V\t\t\tPrint the version number\n" " -g\t\t\tAdd debug info to object file\n"
" -g\t\t\tAdd debug info to object file\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -m model\t\tOverride the o65 model\n"
" -m model\t\tOverride the o65 model\n" " -n\t\t\tDon't generate an output file\n"
" -n\t\t\tDon't generate an output file\n" " -o name\t\tName the output file\n"
" -o name\t\tName the output file\n" " -v\t\t\tIncrease verbosity\n"
" -v\t\t\tIncrease verbosity\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --bss-label name\tDefine and export a BSS segment label\n"
" --bss-label name\tDefine and export a BSS segment label\n" " --bss-name seg\tSet the name of the BSS segment\n"
" --bss-name seg\tSet the name of the BSS segment\n" " --code-label name\tDefine and export a CODE segment label\n"
" --code-label name\tDefine and export a CODE segment label\n" " --code-name seg\tSet the name of the CODE segment\n"
" --code-name seg\tSet the name of the CODE segment\n" " --data-label name\tDefine and export a DATA segment label\n"
" --data-label name\tDefine and export a DATA segment label\n" " --data-name seg\tSet the name of the DATA segment\n"
" --data-name seg\tSet the name of the DATA segment\n" " --debug-info\t\tAdd debug info to object file\n"
" --debug-info\t\tAdd debug info to object file\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --no-output\t\tDon't generate an output file\n"
" --no-output\t\tDon't generate an output file\n" " --o65-model model\tOverride the o65 model\n"
" --o65-model model\tOverride the o65 model\n" " --verbose\t\tIncrease verbosity\n"
" --verbose\t\tIncrease verbosity\n" " --version\t\tPrint the version number\n"
" --version\t\tPrint the version number\n" " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
" --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
" --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", ProgName);
ProgName);
} }

View File

@@ -69,31 +69,30 @@
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s [options] [inputfile]\n"
"Usage: %s [options] [inputfile]\n" "Short options:\n"
"Short options:\n" " -g\t\t\tAdd debug info to object file\n"
" -g\t\t\tAdd debug info to object file\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -i name\t\tSpecify an info file\n"
" -i name\t\tSpecify an info file\n" " -o name\t\tName the output file\n"
" -o name\t\tName the output file\n" " -v\t\t\tIncrease verbosity\n"
" -v\t\t\tIncrease verbosity\n" " -F\t\t\tAdd formfeeds to the output\n"
" -F\t\t\tAdd formfeeds to the output\n" " -S addr\t\tSet the start/load address\n"
" -S addr\t\tSet the start/load address\n" " -V\t\t\tPrint the disassembler version\n"
" -V\t\t\tPrint the disassembler version\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --comments n\t\tSet the comment level for the output\n"
" --comments n\t\tSet the comment level for the output\n" " --cpu type\t\tSet cpu type\n"
" --cpu type\t\tSet cpu type\n" " --debug-info\t\tAdd debug info to object file\n"
" --debug-info\t\tAdd debug info to object file\n" " --formfeeds\t\tAdd formfeeds to the output\n"
" --formfeeds\t\tAdd formfeeds to the output\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --hexoffs\t\tUse hexadecimal label offsets\n"
" --hexoffs\t\tUse hexadecimal label offsets\n" " --info name\t\tSpecify an info file\n"
" --info name\t\tSpecify an info file\n" " --pagelength n\tSet the page length for the listing\n"
" --pagelength n\tSet the page length for the listing\n" " --start-addr addr\tSet the start/load address\n"
" --start-addr addr\tSet the start/load address\n" " --verbose\t\tIncrease verbosity\n"
" --verbose\t\tIncrease verbosity\n" " --version\t\tPrint the disassembler version\n",
" --version\t\tPrint the disassembler version\n", ProgName);
ProgName);
} }

View File

@@ -38,7 +38,7 @@ FILE *outCVT, *input;
unsigned char *buffer; unsigned char *buffer;
unsigned char vlirtabt[127]; unsigned char vlirtabt[127];
unsigned char vlirtabs[127]; unsigned char vlirtabs[127];
int i,j,lastarg; int i,j,lastarg;
unsigned l; unsigned l;
int bytes; int bytes;
int blocks,rest; int blocks,rest;
@@ -213,15 +213,15 @@ void openVFile (void) {
} }
void printUsage (void) { void printUsage (void) {
fprintf(stderr, "Usage: %s [options] file\n" printf("Usage: %s [options] file\n"
"Options:\n" "Options:\n"
"\t-h, -?\t\tthis help\n" "\t-h, -?\t\tthis help\n"
"\t-f\t\tforce writting files\n" "\t-f\t\tforce writting files\n"
"\t-o name\t\tname C output file\n" "\t-o name\t\tname C output file\n"
"\t-s name\t\tname asm output file\n" "\t-s name\t\tname asm output file\n"
"\t-l name\t\tname ld65 config output file (for vlir)\n" "\t-l name\t\tname ld65 config output file (for vlir)\n"
"Or as VLIR linker: %s -vlir output.cvt header [vlir0] ... [blank] ... [vlir_n]\n", "Or as VLIR linker: %s -vlir output.cvt header [vlir0] ... [blank] ... [vlir_n]\n",
ProgName,ProgName); ProgName,ProgName);
} }
int findToken (const char **tokenTbl, const char *token) { int findToken (const char **tokenTbl, const char *token) {

View File

@@ -89,37 +89,36 @@ static unsigned LibFiles = 0; /* Count of library files linked */
static void Usage (void) static void Usage (void)
/* Print usage information and exit */ /* Print usage information and exit */
{ {
fprintf (stderr, printf ("Usage: %s [options] module ...\n"
"Usage: %s [options] module ...\n" "Short options:\n"
"Short options:\n" " -C name\t\tUse linker config file\n"
" -C name\t\tUse linker config file\n" " -L path\t\tSpecify a library search path\n"
" -L path\t\tSpecify a library search path\n" " -Ln name\t\tCreate a VICE label file\n"
" -Ln name\t\tCreate a VICE label file\n" " -S addr\t\tSet the default start address\n"
" -S addr\t\tSet the default start address\n" " -V\t\t\tPrint the linker version\n"
" -V\t\t\tPrint the linker version\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -m name\t\tCreate a map file\n"
" -m name\t\tCreate a map file\n" " -o name\t\tName the default output file\n"
" -o name\t\tName the default output file\n" " -t sys\t\tSet the target system\n"
" -t sys\t\tSet the target system\n" " -v\t\t\tVerbose mode\n"
" -v\t\t\tVerbose mode\n" " -vm\t\t\tVerbose map file\n"
" -vm\t\t\tVerbose map file\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --cfg-path path\tSpecify a config file search path\n"
" --cfg-path path\tSpecify a config file search path\n" " --config name\t\tUse linker config file\n"
" --config name\t\tUse linker config file\n" " --dbgfile name\tGenerate debug information\n"
" --dbgfile name\tGenerate debug information\n" " --dump-config name\tDump a builtin configuration\n"
" --dump-config name\tDump a builtin configuration\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --lib file\t\tLink this library\n"
" --lib file\t\tLink this library\n" " --lib-path path\tSpecify a library search path\n"
" --lib-path path\tSpecify a library search path\n" " --mapfile name\tCreate a map file\n"
" --mapfile name\tCreate a map file\n" " --module-id id\tSpecify a module id\n"
" --module-id id\tSpecify a module id\n" " --obj file\t\tLink this object file\n"
" --obj file\t\tLink this object file\n" " --obj-path path\tSpecify an object file search path\n"
" --obj-path path\tSpecify an object file search path\n" " --start-addr addr\tSet the default start address\n"
" --start-addr addr\tSet the default start address\n" " --target sys\t\tSet the target system\n"
" --target sys\t\tSet the target system\n" " --version\t\tPrint the linker version\n",
" --version\t\tPrint the linker version\n", ProgName);
ProgName);
} }
@@ -529,7 +528,7 @@ int main (int argc, char* argv [])
} }
Error ("Cannot generate output due to memory area overflow%s", Error ("Cannot generate output due to memory area overflow%s",
(MemoryAreaOverflows > 1)? "s" : ""); (MemoryAreaOverflows > 1)? "s" : "");
} }
/* Create the output file */ /* Create the output file */
CfgWriteTarget (); CfgWriteTarget ();

View File

@@ -6,7 +6,7 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2002-2003 Ullrich von Bassewitz */ /* (C) 2002-2005 Ullrich von Bassewitz */
/* R<>merstrasse 52 */ /* R<>merstrasse 52 */
/* D-70794 Filderstadt */ /* D-70794 Filderstadt */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
@@ -70,25 +70,24 @@
static void Usage (void) static void Usage (void)
{ {
fprintf (stderr, printf ("Usage: %s [options] file\n"
"Usage: %s [options] file\n" "Short options:\n"
"Short options:\n" " -C name\t\tUse simulator config file\n"
" -C name\t\tUse simulator config file\n" " -L dir\t\tSet a chip directory search path\n"
" -L dir\t\tSet a chip directory search path\n" " -V\t\t\tPrint the simulator version number\n"
" -V\t\t\tPrint the simulator version number\n" " -d\t\t\tDebug mode\n"
" -d\t\t\tDebug mode\n" " -h\t\t\tHelp (this text)\n"
" -h\t\t\tHelp (this text)\n" " -v\t\t\tIncrease verbosity\n"
" -v\t\t\tIncrease verbosity\n" "\n"
"\n" "Long options:\n"
"Long options:\n" " --chipdir dir\t\tSet a chip directory search path\n"
" --chipdir dir\t\tSet a chip directory search path\n" " --config name\t\tUse simulator config file\n"
" --config name\t\tUse simulator config file\n" " --cpu type\t\tSet cpu type\n"
" --cpu type\t\tSet cpu type\n" " --debug\t\tDebug mode\n"
" --debug\t\tDebug mode\n" " --help\t\tHelp (this text)\n"
" --help\t\tHelp (this text)\n" " --verbose\t\tIncrease verbosity\n"
" --verbose\t\tIncrease verbosity\n" " --version\t\tPrint the simulator version number\n",
" --version\t\tPrint the simulator version number\n", ProgName);
ProgName);
} }