From: cuz Date: Thu, 24 Mar 2005 20:08:41 +0000 (+0000) Subject: Output the help text to stdout X-Git-Tag: V2.12.0~425 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8a6fdb85621373012c6969d8e1e50c37b04c8488;p=cc65 Output the help text to stdout git-svn-id: svn://svn.cc65.org/cc65/trunk@3414 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ar65/main.c b/src/ar65/main.c index d45ee32b8..13c54c642 100644 --- a/src/ar65/main.c +++ b/src/ar65/main.c @@ -60,15 +60,14 @@ static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s lib file|module ...\n" - "Operation is one of:\n" - "\ta\tAdd modules\n" - "\td\tDelete modules\n" - "\tl\tList library contents\n" - "\tx\tExtract modules\n" - "\tV\tPrint the archiver version\n", - ProgName); + printf ("Usage: %s lib file|module ...\n" + "Operation is one of:\n" + "\ta\tAdd modules\n" + "\td\tDelete modules\n" + "\tl\tList library contents\n" + "\tx\tExtract modules\n" + "\tV\tPrint the archiver version\n", + ProgName); exit (EXIT_FAILURE); } diff --git a/src/ca65/main.c b/src/ca65/main.c index e1d67a838..26fec98f6 100644 --- a/src/ca65/main.c +++ b/src/ca65/main.c @@ -84,41 +84,40 @@ static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s [options] file\n" - "Short options:\n" - " -D name[=value]\tDefine a symbol\n" - " -I dir\t\tSet an include directory search path\n" - " -U\t\t\tMark unresolved symbols as import\n" - " -V\t\t\tPrint the assembler version\n" - " -W n\t\t\tSet warning level n\n" - " -g\t\t\tAdd debug info to object file\n" - " -h\t\t\tHelp (this text)\n" - " -i\t\t\tIgnore case of symbols\n" - " -l\t\t\tCreate a listing if assembly was ok\n" - " -mm model\t\tSet the memory model\n" - " -o name\t\tName the output file\n" - " -s\t\t\tEnable smart mode\n" - " -t sys\t\tSet the target system\n" - " -v\t\t\tIncrease verbosity\n" - "\n" - "Long options:\n" - " --auto-import\t\tMark unresolved symbols as import\n" - " --cpu type\t\tSet cpu type\n" - " --debug-info\t\tAdd debug info to object file\n" - " --feature name\tSet an emulation feature\n" - " --help\t\tHelp (this text)\n" - " --ignore-case\t\tIgnore case of symbols\n" - " --include-dir dir\tSet an include directory search path\n" - " --listing\t\tCreate a listing if assembly was ok\n" - " --list-bytes n\tMaximum number of bytes per listing line\n" - " --memory-model model\tSet the memory model\n" - " --pagelength n\tSet the page length for the listing\n" - " --smart\t\tEnable smart mode\n" - " --target sys\t\tSet the target system\n" - " --verbose\t\tIncrease verbosity\n" - " --version\t\tPrint the assembler version\n", - ProgName); + printf ("Usage: %s [options] file\n" + "Short options:\n" + " -D name[=value]\tDefine a symbol\n" + " -I dir\t\tSet an include directory search path\n" + " -U\t\t\tMark unresolved symbols as import\n" + " -V\t\t\tPrint the assembler version\n" + " -W n\t\t\tSet warning level n\n" + " -g\t\t\tAdd debug info to object file\n" + " -h\t\t\tHelp (this text)\n" + " -i\t\t\tIgnore case of symbols\n" + " -l\t\t\tCreate a listing if assembly was ok\n" + " -mm model\t\tSet the memory model\n" + " -o name\t\tName the output file\n" + " -s\t\t\tEnable smart mode\n" + " -t sys\t\tSet the target system\n" + " -v\t\t\tIncrease verbosity\n" + "\n" + "Long options:\n" + " --auto-import\t\tMark unresolved symbols as import\n" + " --cpu type\t\tSet cpu type\n" + " --debug-info\t\tAdd debug info to object file\n" + " --feature name\tSet an emulation feature\n" + " --help\t\tHelp (this text)\n" + " --ignore-case\t\tIgnore case of symbols\n" + " --include-dir dir\tSet an include directory search path\n" + " --listing\t\tCreate a listing if assembly was ok\n" + " --list-bytes n\tMaximum number of bytes per listing line\n" + " --memory-model model\tSet the memory model\n" + " --pagelength n\tSet the page length for the listing\n" + " --smart\t\tEnable smart mode\n" + " --target sys\t\tSet the target system\n" + " --verbose\t\tIncrease verbosity\n" + " --version\t\tPrint the assembler version\n", + ProgName); } diff --git a/src/cc65/main.c b/src/cc65/main.c index 8d5443234..d007e9841 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -77,60 +77,59 @@ static void Usage (void) /* Print usage information to stderr */ { - fprintf (stderr, - "Usage: %s [options] file\n" - "Short options:\n" - " -Cl\t\t\tMake local variables static\n" - " -Dsym[=defn]\t\tDefine a symbol\n" - " -E\t\t\tStop after the preprocessing stage\n" - " -I dir\t\tSet an include directory search path\n" - " -O\t\t\tOptimize code\n" - " -Oi\t\t\tOptimize code, inline more code\n" - " -Or\t\t\tEnable register variables\n" - " -Os\t\t\tInline some known functions\n" - " -T\t\t\tInclude source as comment\n" - " -V\t\t\tPrint the compiler version number\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" - " -mm model\t\tSet the memory model\n" - " -o name\t\tName the output file\n" - " -r\t\t\tEnable register variables\n" - " -t sys\t\tSet the target system\n" - " -v\t\t\tIncrease verbosity\n" - "\n" - "Long options:\n" - " --add-source\t\tInclude source as comment\n" - " --bss-name seg\tSet the name of the BSS segment\n" - " --check-stack\t\tGenerate stack overflow checks\n" - " --code-name seg\tSet the name of the CODE segment\n" - " --codesize x\t\tAccept larger code by factor x\n" - " --cpu type\t\tSet cpu type (6502, 65c02)\n" - " --create-dep\t\tCreate a make dependency file\n" - " --data-name seg\tSet the name of the DATA segment\n" - " --debug\t\tDebug mode\n" - " --debug-info\t\tAdd debug info to object file\n" - " --debug-opt name\tDebug optimization steps\n" - " --disable-opt name\tDisable an optimization step\n" - " --enable-opt name\tEnable an optimization step\n" - " --forget-inc-paths\tForget include search paths\n" - " --help\t\tHelp (this text)\n" - " --include-dir dir\tSet an include directory search path\n" - " --list-opt-steps\tList all optimizer steps and exit\n" - " --memory-model model\tSet the memory model\n" - " --register-space b\tSet space available for register variables\n" - " --register-vars\tEnable register variables\n" - " --rodata-name seg\tSet the name of the RODATA segment\n" - " --signed-chars\tDefault characters are signed\n" - " --standard std\tLanguage standard (c89, c99, cc65)\n" - " --static-locals\tMake local variables static\n" - " --target sys\t\tSet the target system\n" - " --verbose\t\tIncrease verbosity\n" - " --version\t\tPrint the compiler version number\n" - " --writable-strings\tMake string literals writable\n", - ProgName); + printf ("Usage: %s [options] file\n" + "Short options:\n" + " -Cl\t\t\tMake local variables static\n" + " -Dsym[=defn]\t\tDefine a symbol\n" + " -E\t\t\tStop after the preprocessing stage\n" + " -I dir\t\tSet an include directory search path\n" + " -O\t\t\tOptimize code\n" + " -Oi\t\t\tOptimize code, inline more code\n" + " -Or\t\t\tEnable register variables\n" + " -Os\t\t\tInline some known functions\n" + " -T\t\t\tInclude source as comment\n" + " -V\t\t\tPrint the compiler version number\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" + " -mm model\t\tSet the memory model\n" + " -o name\t\tName the output file\n" + " -r\t\t\tEnable register variables\n" + " -t sys\t\tSet the target system\n" + " -v\t\t\tIncrease verbosity\n" + "\n" + "Long options:\n" + " --add-source\t\tInclude source as comment\n" + " --bss-name seg\tSet the name of the BSS segment\n" + " --check-stack\t\tGenerate stack overflow checks\n" + " --code-name seg\tSet the name of the CODE segment\n" + " --codesize x\t\tAccept larger code by factor x\n" + " --cpu type\t\tSet cpu type (6502, 65c02)\n" + " --create-dep\t\tCreate a make dependency file\n" + " --data-name seg\tSet the name of the DATA segment\n" + " --debug\t\tDebug mode\n" + " --debug-info\t\tAdd debug info to object file\n" + " --debug-opt name\tDebug optimization steps\n" + " --disable-opt name\tDisable an optimization step\n" + " --enable-opt name\tEnable an optimization step\n" + " --forget-inc-paths\tForget include search paths\n" + " --help\t\tHelp (this text)\n" + " --include-dir dir\tSet an include directory search path\n" + " --list-opt-steps\tList all optimizer steps and exit\n" + " --memory-model model\tSet the memory model\n" + " --register-space b\tSet space available for register variables\n" + " --register-vars\tEnable register variables\n" + " --rodata-name seg\tSet the name of the RODATA segment\n" + " --signed-chars\tDefault characters are signed\n" + " --standard std\tLanguage standard (c89, c99, cc65)\n" + " --static-locals\tMake local variables static\n" + " --target sys\t\tSet the target system\n" + " --verbose\t\tIncrease verbosity\n" + " --version\t\tPrint the compiler version number\n" + " --writable-strings\tMake string literals writable\n", + ProgName); } diff --git a/src/cl65/main.c b/src/cl65/main.c index 216743e5d..bd0dc9e1c 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -588,83 +588,82 @@ static void ConvertO65 (const char* File) static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s [options] file [...]\n" - "Short options:\n" - " -c\t\t\tCompile and assemble but don't link\n" - " -d\t\t\tDebug mode\n" - " -g\t\t\tAdd debug info\n" - " -h\t\t\tHelp (this text)\n" - " -l\t\t\tCreate an assembler listing\n" - " -m name\t\tCreate a map file\n" - " -mm model\t\tSet the memory model\n" - " -o name\t\tName the output file\n" - " -r\t\t\tEnable register variables\n" - " -t sys\t\tSet the target system\n" - " -v\t\t\tVerbose mode\n" - " -vm\t\t\tVerbose map file\n" - " -C name\t\tUse linker config file\n" - " -Cl\t\t\tMake local variables static\n" - " -D sym[=defn]\t\tDefine a preprocessor symbol\n" - " -I dir\t\tSet a compiler include directory path\n" - " -L path\t\tSpecify a library search path\n" - " -Ln name\t\tCreate a VICE label file\n" - " -O\t\t\tOptimize code\n" - " -Oi\t\t\tOptimize code, inline functions\n" - " -Or\t\t\tOptimize code, honour the register keyword\n" - " -Os\t\t\tOptimize code, inline known C funtions\n" - " -S\t\t\tCompile but don't assemble and link\n" - " -T\t\t\tInclude source as comment\n" - " -V\t\t\tPrint the version number\n" - " -W\t\t\tSuppress warnings\n" - "\n" - "Long options:\n" - " --add-source\t\tInclude source as comment\n" - " --asm-define sym[=v]\tDefine an assembler symbol\n" - " --asm-include-dir dir\tSet an assembler include directory\n" - " --bss-label name\tDefine and export a BSS segment label\n" - " --bss-name seg\tSet the name of the BSS segment\n" - " --cfg-path path\tSpecify a config file search path\n" - " --check-stack\t\tGenerate stack overflow checks\n" - " --code-label name\tDefine and export a CODE segment label\n" - " --code-name seg\tSet the name of the CODE segment\n" - " --codesize x\t\tAccept larger code by factor x\n" - " --config name\t\tUse linker config file\n" - " --cpu type\t\tSet cpu type\n" - " --create-dep\t\tCreate a make dependency file\n" - " --data-label name\tDefine and export a DATA segment label\n" - " --data-name seg\tSet the name of the DATA segment\n" - " --debug\t\tDebug mode\n" - " --debug-info\t\tAdd debug info\n" - " --feature name\tSet an emulation feature\n" - " --forget-inc-paths\tForget include search paths (compiler)\n" - " --help\t\tHelp (this text)\n" - " --include-dir dir\tSet a compiler include directory path\n" - " --lib file\t\tLink this library\n" - " --lib-path path\tSpecify a library search path\n" - " --list-targets\tList all available targets\n" - " --listing\t\tCreate an assembler listing\n" - " --list-bytes n\tNumber of bytes per assembler listing line\n" - " --mapfile name\tCreate a map file\n" - " --memory-model model\tSet the memory model\n" - " --module\t\tLink as a module\n" - " --module-id id\tSpecify a module id for the linker\n" - " --o65-model model\tOverride the o65 model\n" - " --obj file\t\tLink this object file\n" - " --obj-path path\tSpecify an object file search path\n" - " --register-space b\tSet space available for register variables\n" - " --register-vars\tEnable register variables\n" - " --rodata-name seg\tSet the name of the RODATA segment\n" - " --signed-chars\tDefault characters are signed\n" - " --standard std\tLanguage standard (c89, c99, cc65)\n" - " --start-addr addr\tSet the default start address\n" - " --static-locals\tMake local variables static\n" - " --target sys\t\tSet the target system\n" - " --version\t\tPrint the version number\n" - " --verbose\t\tVerbose mode\n" - " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" - " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", - ProgName); + printf ("Usage: %s [options] file [...]\n" + "Short options:\n" + " -c\t\t\tCompile and assemble but don't link\n" + " -d\t\t\tDebug mode\n" + " -g\t\t\tAdd debug info\n" + " -h\t\t\tHelp (this text)\n" + " -l\t\t\tCreate an assembler listing\n" + " -m name\t\tCreate a map file\n" + " -mm model\t\tSet the memory model\n" + " -o name\t\tName the output file\n" + " -r\t\t\tEnable register variables\n" + " -t sys\t\tSet the target system\n" + " -v\t\t\tVerbose mode\n" + " -vm\t\t\tVerbose map file\n" + " -C name\t\tUse linker config file\n" + " -Cl\t\t\tMake local variables static\n" + " -D sym[=defn]\t\tDefine a preprocessor symbol\n" + " -I dir\t\tSet a compiler include directory path\n" + " -L path\t\tSpecify a library search path\n" + " -Ln name\t\tCreate a VICE label file\n" + " -O\t\t\tOptimize code\n" + " -Oi\t\t\tOptimize code, inline functions\n" + " -Or\t\t\tOptimize code, honour the register keyword\n" + " -Os\t\t\tOptimize code, inline known C funtions\n" + " -S\t\t\tCompile but don't assemble and link\n" + " -T\t\t\tInclude source as comment\n" + " -V\t\t\tPrint the version number\n" + " -W\t\t\tSuppress warnings\n" + "\n" + "Long options:\n" + " --add-source\t\tInclude source as comment\n" + " --asm-define sym[=v]\tDefine an assembler symbol\n" + " --asm-include-dir dir\tSet an assembler include directory\n" + " --bss-label name\tDefine and export a BSS segment label\n" + " --bss-name seg\tSet the name of the BSS segment\n" + " --cfg-path path\tSpecify a config file search path\n" + " --check-stack\t\tGenerate stack overflow checks\n" + " --code-label name\tDefine and export a CODE segment label\n" + " --code-name seg\tSet the name of the CODE segment\n" + " --codesize x\t\tAccept larger code by factor x\n" + " --config name\t\tUse linker config file\n" + " --cpu type\t\tSet cpu type\n" + " --create-dep\t\tCreate a make dependency file\n" + " --data-label name\tDefine and export a DATA segment label\n" + " --data-name seg\tSet the name of the DATA segment\n" + " --debug\t\tDebug mode\n" + " --debug-info\t\tAdd debug info\n" + " --feature name\tSet an emulation feature\n" + " --forget-inc-paths\tForget include search paths (compiler)\n" + " --help\t\tHelp (this text)\n" + " --include-dir dir\tSet a compiler include directory path\n" + " --lib file\t\tLink this library\n" + " --lib-path path\tSpecify a library search path\n" + " --list-targets\tList all available targets\n" + " --listing\t\tCreate an assembler listing\n" + " --list-bytes n\tNumber of bytes per assembler listing line\n" + " --mapfile name\tCreate a map file\n" + " --memory-model model\tSet the memory model\n" + " --module\t\tLink as a module\n" + " --module-id id\tSpecify a module id for the linker\n" + " --o65-model model\tOverride the o65 model\n" + " --obj file\t\tLink this object file\n" + " --obj-path path\tSpecify an object file search path\n" + " --register-space b\tSet space available for register variables\n" + " --register-vars\tEnable register variables\n" + " --rodata-name seg\tSet the name of the RODATA segment\n" + " --signed-chars\tDefault characters are signed\n" + " --standard std\tLanguage standard (c89, c99, cc65)\n" + " --start-addr addr\tSet the default start address\n" + " --static-locals\tMake local variables static\n" + " --target sys\t\tSet the target system\n" + " --version\t\tPrint the version number\n" + " --verbose\t\tVerbose mode\n" + " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" + " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", + 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))) /* Forget all currently defined include paths */ { diff --git a/src/co65/main.c b/src/co65/main.c index e90be9f09..b565c526e 100644 --- a/src/co65/main.c +++ b/src/co65/main.c @@ -68,33 +68,32 @@ static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s [options] file\n" - "Short options:\n" - " -V\t\t\tPrint the version number\n" - " -g\t\t\tAdd debug info to object file\n" - " -h\t\t\tHelp (this text)\n" - " -m model\t\tOverride the o65 model\n" - " -n\t\t\tDon't generate an output file\n" - " -o name\t\tName the output file\n" - " -v\t\t\tIncrease verbosity\n" - "\n" - "Long options:\n" - " --bss-label name\tDefine and export a BSS segment label\n" - " --bss-name seg\tSet the name of the BSS segment\n" - " --code-label name\tDefine and export a CODE segment label\n" - " --code-name seg\tSet the name of the CODE segment\n" - " --data-label name\tDefine and export a DATA segment label\n" - " --data-name seg\tSet the name of the DATA segment\n" - " --debug-info\t\tAdd debug info to object file\n" - " --help\t\tHelp (this text)\n" - " --no-output\t\tDon't generate an output file\n" - " --o65-model model\tOverride the o65 model\n" - " --verbose\t\tIncrease verbosity\n" - " --version\t\tPrint the version number\n" - " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" - " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", - ProgName); + printf ("Usage: %s [options] file\n" + "Short options:\n" + " -V\t\t\tPrint the version number\n" + " -g\t\t\tAdd debug info to object file\n" + " -h\t\t\tHelp (this text)\n" + " -m model\t\tOverride the o65 model\n" + " -n\t\t\tDon't generate an output file\n" + " -o name\t\tName the output file\n" + " -v\t\t\tIncrease verbosity\n" + "\n" + "Long options:\n" + " --bss-label name\tDefine and export a BSS segment label\n" + " --bss-name seg\tSet the name of the BSS segment\n" + " --code-label name\tDefine and export a CODE segment label\n" + " --code-name seg\tSet the name of the CODE segment\n" + " --data-label name\tDefine and export a DATA segment label\n" + " --data-name seg\tSet the name of the DATA segment\n" + " --debug-info\t\tAdd debug info to object file\n" + " --help\t\tHelp (this text)\n" + " --no-output\t\tDon't generate an output file\n" + " --o65-model model\tOverride the o65 model\n" + " --verbose\t\tIncrease verbosity\n" + " --version\t\tPrint the version number\n" + " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n" + " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n", + ProgName); } diff --git a/src/da65/main.c b/src/da65/main.c index 81525f116..ac1511b57 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -69,31 +69,30 @@ static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s [options] [inputfile]\n" - "Short options:\n" - " -g\t\t\tAdd debug info to object file\n" - " -h\t\t\tHelp (this text)\n" - " -i name\t\tSpecify an info file\n" - " -o name\t\tName the output file\n" - " -v\t\t\tIncrease verbosity\n" - " -F\t\t\tAdd formfeeds to the output\n" - " -S addr\t\tSet the start/load address\n" - " -V\t\t\tPrint the disassembler version\n" - "\n" - "Long options:\n" - " --comments n\t\tSet the comment level for the output\n" - " --cpu type\t\tSet cpu type\n" - " --debug-info\t\tAdd debug info to object file\n" - " --formfeeds\t\tAdd formfeeds to the output\n" - " --help\t\tHelp (this text)\n" - " --hexoffs\t\tUse hexadecimal label offsets\n" - " --info name\t\tSpecify an info file\n" - " --pagelength n\tSet the page length for the listing\n" - " --start-addr addr\tSet the start/load address\n" - " --verbose\t\tIncrease verbosity\n" - " --version\t\tPrint the disassembler version\n", - ProgName); + printf ("Usage: %s [options] [inputfile]\n" + "Short options:\n" + " -g\t\t\tAdd debug info to object file\n" + " -h\t\t\tHelp (this text)\n" + " -i name\t\tSpecify an info file\n" + " -o name\t\tName the output file\n" + " -v\t\t\tIncrease verbosity\n" + " -F\t\t\tAdd formfeeds to the output\n" + " -S addr\t\tSet the start/load address\n" + " -V\t\t\tPrint the disassembler version\n" + "\n" + "Long options:\n" + " --comments n\t\tSet the comment level for the output\n" + " --cpu type\t\tSet cpu type\n" + " --debug-info\t\tAdd debug info to object file\n" + " --formfeeds\t\tAdd formfeeds to the output\n" + " --help\t\tHelp (this text)\n" + " --hexoffs\t\tUse hexadecimal label offsets\n" + " --info name\t\tSpecify an info file\n" + " --pagelength n\tSet the page length for the listing\n" + " --start-addr addr\tSet the start/load address\n" + " --verbose\t\tIncrease verbosity\n" + " --version\t\tPrint the disassembler version\n", + ProgName); } diff --git a/src/grc/grc.c b/src/grc/grc.c index a8d434702..a05b08109 100644 --- a/src/grc/grc.c +++ b/src/grc/grc.c @@ -38,7 +38,7 @@ FILE *outCVT, *input; unsigned char *buffer; unsigned char vlirtabt[127]; unsigned char vlirtabs[127]; -int i,j,lastarg; +int i,j,lastarg; unsigned l; int bytes; int blocks,rest; @@ -213,15 +213,15 @@ void openVFile (void) { } void printUsage (void) { - fprintf(stderr, "Usage: %s [options] file\n" - "Options:\n" - "\t-h, -?\t\tthis help\n" - "\t-f\t\tforce writting files\n" - "\t-o name\t\tname C output file\n" - "\t-s name\t\tname asm output file\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", - ProgName,ProgName); + printf("Usage: %s [options] file\n" + "Options:\n" + "\t-h, -?\t\tthis help\n" + "\t-f\t\tforce writting files\n" + "\t-o name\t\tname C output file\n" + "\t-s name\t\tname asm output file\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", + ProgName,ProgName); } int findToken (const char **tokenTbl, const char *token) { diff --git a/src/ld65/main.c b/src/ld65/main.c index d549b4693..1af45165c 100644 --- a/src/ld65/main.c +++ b/src/ld65/main.c @@ -89,37 +89,36 @@ static unsigned LibFiles = 0; /* Count of library files linked */ static void Usage (void) /* Print usage information and exit */ { - fprintf (stderr, - "Usage: %s [options] module ...\n" - "Short options:\n" - " -C name\t\tUse linker config file\n" - " -L path\t\tSpecify a library search path\n" - " -Ln name\t\tCreate a VICE label file\n" - " -S addr\t\tSet the default start address\n" - " -V\t\t\tPrint the linker version\n" - " -h\t\t\tHelp (this text)\n" - " -m name\t\tCreate a map file\n" - " -o name\t\tName the default output file\n" - " -t sys\t\tSet the target system\n" - " -v\t\t\tVerbose mode\n" - " -vm\t\t\tVerbose map file\n" - "\n" - "Long options:\n" - " --cfg-path path\tSpecify a config file search path\n" - " --config name\t\tUse linker config file\n" - " --dbgfile name\tGenerate debug information\n" - " --dump-config name\tDump a builtin configuration\n" - " --help\t\tHelp (this text)\n" - " --lib file\t\tLink this library\n" - " --lib-path path\tSpecify a library search path\n" - " --mapfile name\tCreate a map file\n" - " --module-id id\tSpecify a module id\n" - " --obj file\t\tLink this object file\n" - " --obj-path path\tSpecify an object file search path\n" - " --start-addr addr\tSet the default start address\n" - " --target sys\t\tSet the target system\n" - " --version\t\tPrint the linker version\n", - ProgName); + printf ("Usage: %s [options] module ...\n" + "Short options:\n" + " -C name\t\tUse linker config file\n" + " -L path\t\tSpecify a library search path\n" + " -Ln name\t\tCreate a VICE label file\n" + " -S addr\t\tSet the default start address\n" + " -V\t\t\tPrint the linker version\n" + " -h\t\t\tHelp (this text)\n" + " -m name\t\tCreate a map file\n" + " -o name\t\tName the default output file\n" + " -t sys\t\tSet the target system\n" + " -v\t\t\tVerbose mode\n" + " -vm\t\t\tVerbose map file\n" + "\n" + "Long options:\n" + " --cfg-path path\tSpecify a config file search path\n" + " --config name\t\tUse linker config file\n" + " --dbgfile name\tGenerate debug information\n" + " --dump-config name\tDump a builtin configuration\n" + " --help\t\tHelp (this text)\n" + " --lib file\t\tLink this library\n" + " --lib-path path\tSpecify a library search path\n" + " --mapfile name\tCreate a map file\n" + " --module-id id\tSpecify a module id\n" + " --obj file\t\tLink this object file\n" + " --obj-path path\tSpecify an object file search path\n" + " --start-addr addr\tSet the default start address\n" + " --target sys\t\tSet the target system\n" + " --version\t\tPrint the linker version\n", + ProgName); } @@ -529,7 +528,7 @@ int main (int argc, char* argv []) } Error ("Cannot generate output due to memory area overflow%s", (MemoryAreaOverflows > 1)? "s" : ""); - } + } /* Create the output file */ CfgWriteTarget (); diff --git a/src/sim65/main.c b/src/sim65/main.c index c0e67f39e..7f53895d4 100644 --- a/src/sim65/main.c +++ b/src/sim65/main.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2002-2003 Ullrich von Bassewitz */ +/* (C) 2002-2005 Ullrich von Bassewitz */ /* Römerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -70,25 +70,24 @@ static void Usage (void) { - fprintf (stderr, - "Usage: %s [options] file\n" - "Short options:\n" - " -C name\t\tUse simulator config file\n" - " -L dir\t\tSet a chip directory search path\n" - " -V\t\t\tPrint the simulator version number\n" - " -d\t\t\tDebug mode\n" - " -h\t\t\tHelp (this text)\n" - " -v\t\t\tIncrease verbosity\n" - "\n" - "Long options:\n" - " --chipdir dir\t\tSet a chip directory search path\n" - " --config name\t\tUse simulator config file\n" - " --cpu type\t\tSet cpu type\n" - " --debug\t\tDebug mode\n" - " --help\t\tHelp (this text)\n" - " --verbose\t\tIncrease verbosity\n" - " --version\t\tPrint the simulator version number\n", - ProgName); + printf ("Usage: %s [options] file\n" + "Short options:\n" + " -C name\t\tUse simulator config file\n" + " -L dir\t\tSet a chip directory search path\n" + " -V\t\t\tPrint the simulator version number\n" + " -d\t\t\tDebug mode\n" + " -h\t\t\tHelp (this text)\n" + " -v\t\t\tIncrease verbosity\n" + "\n" + "Long options:\n" + " --chipdir dir\t\tSet a chip directory search path\n" + " --config name\t\tUse simulator config file\n" + " --cpu type\t\tSet cpu type\n" + " --debug\t\tDebug mode\n" + " --help\t\tHelp (this text)\n" + " --verbose\t\tIncrease verbosity\n" + " --version\t\tPrint the simulator version number\n", + ProgName); }