Skip to content

Commit

Permalink
Merge pull request cc65#2500 from kugelfuhr/kugelfuhr/better-help-for-W
Browse files Browse the repository at this point in the history
Improve the usage output for the '-W' option
  • Loading branch information
mrdudz authored Sep 7, 2024
2 parents 5e5dd1d + e201461 commit 7bd0a1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions doc/cc65.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Short options:
-Os Inline some standard functions
-T Include source as comment
-V Print the compiler version number
-W warning[,...] Suppress warnings
-W [-+]warning[,...] Control warnings ('-' disables, '+' enables)
-d Debug mode
-g Add debug info to object file
-h Help (this text)
Expand All @@ -84,8 +84,9 @@ Long options:
--create-full-dep name Create a full make dependency file
--data-name seg Set the name of the DATA segment
--debug Debug mode
--debug-tables name Write symbol table debug info to a file
--debug-info Add debug info to object file
--debug-opt name Configure optimizations with a file
--debug-opt name Debug optimization steps
--debug-opt-output Debug output of each optimization step
--dep-target target Use this dependency target
--disable-opt name Disable an optimization step
Expand Down
2 changes: 1 addition & 1 deletion src/cc65/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void Usage (void)
" -Os\t\t\t\tInline some standard functions\n"
" -T\t\t\t\tInclude source as comment\n"
" -V\t\t\t\tPrint the compiler version number\n"
" -W warning[,...]\t\tSuppress warnings\n"
" -W [-+]warning[,...]\t\tControl warnings ('-' disables, '+' enables)\n"
" -d\t\t\t\tDebug mode\n"
" -g\t\t\t\tAdd debug info to object file\n"
" -h\t\t\t\tHelp (this text)\n"
Expand Down

0 comments on commit 7bd0a1d

Please sign in to comment.