From: Akim Demaille Date: Sun, 4 Nov 2007 20:45:32 +0000 (+0000) Subject: Complete --help. X-Git-Tag: v2.3b~67 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6aeb9c579b7e7dd8d9a98c31f75ce7a3e20f1318 Complete --help. * src/getargs.c (usage): Document -W, make it clear that -d, -g and -x have optional arguments. --- diff --git a/ChangeLog b/ChangeLog index 33b0aa9f..9084f141 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-04 Akim Demaille + + Complete --help. + * src/getargs.c (usage): Document -W, make it clear that -d, + -g and -x have optional arguments. + 2007-11-04 Akim Demaille Find sha1sum when named gsha1sum. diff --git a/src/getargs.c b/src/getargs.c index bea533b6..fca4401b 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -263,6 +263,7 @@ Operation modes:\n\ --print-localedir output directory containing locale-dependent data\n\ --print-datadir output directory containing skeletons and XSLT\n\ -y, --yacc emulate POSIX Yacc\n\ + -W, --warnings=[CATEGORY] report the warnings falling in CATEGORY\n\ \n\ "), stdout); @@ -279,16 +280,26 @@ Parser:\n\ fputs (_("\ Output:\n\ - -d, --defines also produce a header file\n\ + -d, --defines[=FILE] also produce a header file\n\ -r, --report=THINGS also produce details on the automaton\n\ -v, --verbose same as `--report=state'\n\ -b, --file-prefix=PREFIX specify a PREFIX for output files\n\ -o, --output=FILE leave output to FILE\n\ - -g, --graph also output a graph of the automaton\n\ - -x, --xml also output an xml of the automaton\n\ + -g, --graph[=FILE] also output a graph of the automaton\n\ + -x, --xml[=FILE] also output an XML report of the automaton\n\ \n\ "), stdout); + fputs (_("\ +Warning categories include:\n\ + `midrule-values' unset or unused midrule values\n\ + `yacc' incompatibilities with POSIX YACC\n\ + `all' all the warnings\n\ + `no-CATEGORY' turn off warnings in CATEGORY\n\ + `none' turn off all the warnings\n\ + `error' treat warnings as errors\n\ +"), stdout); + fputs (_("\ THINGS is a list of comma separated words that can include:\n\ `state' describe the states\n\