From a2d5d3b8101a674031745c1609da2644522249c2 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Fri, 14 Jan 2022 00:16:54 +1100 Subject: Add --help itself to help --- passgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passgen.c b/passgen.c index 88d4a76..0b6631d 100644 --- a/passgen.c +++ b/passgen.c @@ -137,11 +137,12 @@ passgen - a small, customisable password generator\n\ Usage: %s\n\ %s \n\ %s <#triplets ('Cvc')> <#symbols> <#numbers>\n\ + %s --help\n\ Hints:\n\ - No arguments generates with the default grammar.\n\ - If three numbers are provided, a password will be generated in the 'standard form', .\n\ Compile-time options (edit `config.h` to customise!):\n\ - - Default grammar: %s\n", argv[0], argv[0], argv[0], grammar_buf); + - Default grammar: %s\n", argv[0], argv[0], argv[0], argv[0], grammar_buf); printf(" - Grammar mappings:\n"); for (int i = 0; i < classes_n; ++i) { printf(" - '%c' => \"%s\"\n", classes[i].c, classes[i].letters); -- cgit