1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

move options, add doc

This commit is contained in:
paul moore 2024-03-18 15:58:00 -07:00
parent ac6d43adc9
commit eb2acfc3e4
2 changed files with 8 additions and 4 deletions

View File

@ -94,6 +94,8 @@ Short options:
-W n Set warning level n -W n Set warning level n
-d Debug mode -d Debug mode
-g Add debug info to object file -g Add debug info to object file
-x Expand macros in the listing
repeat -x for full expansion
-h Help (this text) -h Help (this text)
-i Ignore case of symbols -i Ignore case of symbols
-l name Create a listing file if assembly was ok -l name Create a listing file if assembly was ok
@ -111,6 +113,8 @@ Long options:
--create-full-dep name Create a full make dependency file --create-full-dep name Create a full make dependency file
--debug Debug mode --debug Debug mode
--debug-info Add debug info to object file --debug-info Add debug info to object file
--expand-macros Expand macros in listing
Repeat to get full expansion
--feature name Set an emulation feature --feature name Set an emulation feature
--help Help (this text) --help Help (this text)
--ignore-case Ignore case of symbols --ignore-case Ignore case of symbols

View File

@ -117,6 +117,7 @@ static void Usage (void)
" --create-full-dep name\tCreate a full make dependency file\n" " --create-full-dep name\tCreate a full make dependency file\n"
" --debug\t\t\tDebug mode\n" " --debug\t\t\tDebug mode\n"
" --debug-info\t\t\tAdd debug info to object file\n" " --debug-info\t\t\tAdd debug info to object file\n"
" --expand-macros\t\tExpand macros in the listing\n"
" --feature name\t\tSet an emulation feature\n" " --feature name\t\tSet an emulation feature\n"
" --help\t\t\tHelp (this text)\n" " --help\t\t\tHelp (this text)\n"
" --ignore-case\t\t\tIgnore case of symbols\n" " --ignore-case\t\t\tIgnore case of symbols\n"
@ -130,8 +131,7 @@ static void Usage (void)
" --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",
" --expand-macros\t\tExpand macros in the listing\n",
ProgName); ProgName);
} }
@ -675,7 +675,7 @@ static void OptWarningsAsErrors (const char* Opt attribute ((unused)),
static void OptExpandMacros (const char* Opt attribute ((unused)), static void OptExpandMacros (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused))) const char* Arg attribute ((unused)))
/* Expand macros in listing /* Expand macros in listing
** one -m means short listing ** one -x means short listing
** two means full listing ** two means full listing
*/ */
{ {
@ -960,6 +960,7 @@ int main (int argc, char* argv [])
{ "--create-full-dep", 1, OptCreateFullDep }, { "--create-full-dep", 1, OptCreateFullDep },
{ "--debug", 0, OptDebug }, { "--debug", 0, OptDebug },
{ "--debug-info", 0, OptDebugInfo }, { "--debug-info", 0, OptDebugInfo },
{ "--expand-macros", 0, OptExpandMacros },
{ "--feature", 1, OptFeature }, { "--feature", 1, OptFeature },
{ "--help", 0, OptHelp }, { "--help", 0, OptHelp },
{ "--ignore-case", 0, OptIgnoreCase }, { "--ignore-case", 0, OptIgnoreCase },
@ -975,7 +976,6 @@ int main (int argc, char* argv [])
{ "--verbose", 0, OptVerbose }, { "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion }, { "--version", 0, OptVersion },
{ "--warnings-as-errors", 0, OptWarningsAsErrors }, { "--warnings-as-errors", 0, OptWarningsAsErrors },
{ "--expand-macros", 0, OptExpandMacros },
}; };
/* Name of the global name space */ /* Name of the global name space */