--update: when used, do not generate the output files

It is inconvenient that we also generate the output files when we
update the grammar file, and it's somewhat unexpected.  Let's not do
that.

* src/main.c (main): Skip generation when --update is passed.
* src/getargs.c (usage): Update the help message.
* doc/bison.texi (Bison Options): Likewise.
* tests/input.at: Check that we don't generate the output.
This commit is contained in:
Akim Demaille
2019-01-21 19:37:10 +01:00
parent 36cae8e752
commit 5ec9c99662
4 changed files with 42 additions and 31 deletions

View File

@@ -10272,8 +10272,8 @@ Print the name of the directory containing skeletons and XSLT.
@item -u
@item --update
Update the grammar file (remove duplicates, update deprecated directives,
etc.). Leaves a backup of the original file with a @code{~} appended. For
instance:
etc.) and exit (i.e., do not generate any of the output files). Leaves a
backup of the original file with a @code{~} appended. For instance:
@example
@group