aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-01-14 00:16:54 +1100
committerNicholas Tay <nick@windblume.net>2022-01-14 00:16:54 +1100
commita2d5d3b8101a674031745c1609da2644522249c2 (patch)
treee53c2a68b2d7cb2e577794a4b48b26588a82f2d5
parent0ae79b0b8122b99aed41c5557b2c2ce57c03b0f6 (diff)
downloadpassgen-a2d5d3b8101a674031745c1609da2644522249c2.tar.gz
passgen-a2d5d3b8101a674031745c1609da2644522249c2.tar.bz2
passgen-a2d5d3b8101a674031745c1609da2644522249c2.zip
Add --help itself to help
-rw-r--r--passgen.c3
1 files changed, 2 insertions, 1 deletions
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 <grammar>\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', <triplets><symbols><numbers>.\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);