usage: document -ffixit

* src/getargs.c (usage): Document -ffixit.
Document the aliases of -f.
This commit is contained in:
Akim Demaille
2019-01-27 07:58:48 +01:00
parent f82f7eb1d8
commit d02ca923e2

View File

@@ -19,6 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h> #include <config.h>
#include "getargs.h"
#include "system.h" #include "system.h"
#include <argmatch.h> #include <argmatch.h>
@@ -31,7 +33,6 @@
#include "complain.h" #include "complain.h"
#include "files.h" #include "files.h"
#include "getargs.h"
#include "muscle-tab.h" #include "muscle-tab.h"
#include "output.h" #include "output.h"
#include "uniqstr.h" #include "uniqstr.h"
@@ -290,7 +291,7 @@ Operation modes:\n\
-u, --update apply fixes to the source grammar file and exit\n\ -u, --update apply fixes to the source grammar file and exit\n\
-y, --yacc emulate POSIX Yacc\n\ -y, --yacc emulate POSIX Yacc\n\
-W, --warnings[=CATEGORY] report the warnings falling in CATEGORY\n\ -W, --warnings[=CATEGORY] report the warnings falling in CATEGORY\n\
-f, --feature[=FEATURE] activate miscellaneous features\n\ -f, --feature[=FEATURES] activate miscellaneous features\n\
\n\ \n\
"), stdout); "), stdout);
@@ -356,10 +357,15 @@ THINGS is a list of comma separated words that can include:\n\
putc ('\n', stdout); putc ('\n', stdout);
fputs (_("\ fputs (_("\
FEATURE is a list of comma separated words that can include:\n\ FEATURES is a list of comma separated words that can include:\n\
'caret' show errors with carets\n\ 'caret', 'diagnostics-show-caret'\n\
'all' all of the above\n\ show errors with carets\n\
'none' disable all of the above\n\ 'fixit', 'diagnostics-parseable-fixits'\n\
show machine-readable fixes\n\
'all'\n\
all of the above\n\
'none'\n\
disable all of the above\n\
"), stdout); "), stdout);
putc ('\n', stdout); putc ('\n', stdout);