summaryrefslogtreecommitdiff
path: root/src/getargs.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-07-05 18:48:25 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-07-07 08:01:37 +0200
commit4e3c6f59cc0bd747d0b3b26707e45addf09c5a8a (patch)
treeca4b40405f3fdd4e52917ccf43f36d5e73565795 /src/getargs.c
parent801582b41013e55a00de8368304532389b0b419a (diff)
downloadbison-4e3c6f59cc0bd747d0b3b26707e45addf09c5a8a.tar.gz
doc: move -y's documentation into "Tuning the Parser"
Let's clarify --help: use clearer "section" names, as in the doc. Move --yacc to where it belongs. * src/getargs.c (usage): Rename "Parser" as "Tuning the Parser", as in the doc. Rename "Output" as "Output Files" Move --yacc to "Tuning the Parser". * doc/bison.texi: Likewise.
Diffstat (limited to 'src/getargs.c')
-rw-r--r--src/getargs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/getargs.c b/src/getargs.c
index d87241c5..f68366e0 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -368,7 +368,7 @@ The same is true for optional arguments.\n\
fputs (_("\
\n\
-Operation modes:\n\
+Operation Modes:\n\
-h, --help display this help and exit\n\
-V, --version output version information and exit\n\
--print-localedir output directory containing locale-dependent data\n\
@@ -376,7 +376,6 @@ Operation modes:\n\
--print-datadir output directory containing skeletons and XSLT\n\
and exit\n\
-u, --update apply fixes to the source grammar file and exit\n\
- -y, --yacc emulate POSIX Yacc\n\
-W, --warnings[=CATEGORY] report the warnings falling in CATEGORY\n\
--color[=WHEN] whether to colorize the diagnostics\n\
--style=FILE specify the CSS FILE for colorizer diagnostics\n\
@@ -385,7 +384,7 @@ Operation modes:\n\
"), stdout);
fputs (_("\
-Parser:\n\
+Tuning the Parser:\n\
-L, --language=LANGUAGE specify the output programming language\n\
-S, --skeleton=FILE specify the skeleton to use\n\
-t, --debug instrument the parser for tracing\n\
@@ -397,13 +396,14 @@ Parser:\n\
deprecated by '-Dapi.prefix=PREFIX'\n\
-l, --no-lines don't generate '#line' directives\n\
-k, --token-table include a table of token names\n\
+ -y, --yacc emulate POSIX Yacc\n\
"), stdout);
putc ('\n', stdout);
/* Keep -d and --defines separate so that ../build-aux/cross-options.pl
* won't assume that -d also takes an argument. */
fputs (_("\
-Output:\n\
+Output Files:\n\
--defines[=FILE] also produce a header file\n\
-d likewise but cannot specify FILE (for POSIX Yacc)\n\
-r, --report=THINGS also produce details on the automaton\n\