Skip to content

Commit 7bd0a1d

Browse files
authored
Merge pull request cc65#2500 from kugelfuhr/kugelfuhr/better-help-for-W
Improve the usage output for the '-W' option
2 parents 5e5dd1d + e201461 commit 7bd0a1d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/cc65.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Short options:
6161
-Os Inline some standard functions
6262
-T Include source as comment
6363
-V Print the compiler version number
64-
-W warning[,...] Suppress warnings
64+
-W [-+]warning[,...] Control warnings ('-' disables, '+' enables)
6565
-d Debug mode
6666
-g Add debug info to object file
6767
-h Help (this text)
@@ -84,8 +84,9 @@ Long options:
8484
--create-full-dep name Create a full make dependency file
8585
--data-name seg Set the name of the DATA segment
8686
--debug Debug mode
87+
--debug-tables name Write symbol table debug info to a file
8788
--debug-info Add debug info to object file
88-
--debug-opt name Configure optimizations with a file
89+
--debug-opt name Debug optimization steps
8990
--debug-opt-output Debug output of each optimization step
9091
--dep-target target Use this dependency target
9192
--disable-opt name Disable an optimization step

src/cc65/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void Usage (void)
9191
" -Os\t\t\t\tInline some standard functions\n"
9292
" -T\t\t\t\tInclude source as comment\n"
9393
" -V\t\t\t\tPrint the compiler version number\n"
94-
" -W warning[,...]\t\tSuppress warnings\n"
94+
" -W [-+]warning[,...]\t\tControl warnings ('-' disables, '+' enables)\n"
9595
" -d\t\t\t\tDebug mode\n"
9696
" -g\t\t\t\tAdd debug info to object file\n"
9797
" -h\t\t\t\tHelp (this text)\n"

0 commit comments

Comments
 (0)