diff options
author | Nicholas Tay <nick@windblume.net> | 2022-01-14 00:07:53 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-01-14 00:07:53 +1100 |
commit | 85cceba21b3a92942fcae7578bd02c67fc97a1d0 (patch) | |
tree | 7ff125e3ba1ca0d9637a7a8edd2dc4d7babddb97 /passgen.c | |
parent | 42bd03b610153c4679e29001b859a1d783f9db69 (diff) | |
download | passgen-85cceba21b3a92942fcae7578bd02c67fc97a1d0.tar.gz passgen-85cceba21b3a92942fcae7578bd02c67fc97a1d0.tar.bz2 passgen-85cceba21b3a92942fcae7578bd02c67fc97a1d0.zip |
Add grammar mappings to help message
These should be quite useful since I forget what the mappings are
sometimes, and maybe want to make a custom grammar.
Diffstat (limited to '')
-rw-r--r-- | passgen.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -140,8 +140,12 @@ Usage: %s\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:\n\ +Compile-time options (edit `config.h` to customise!):\n\ - Default grammar: %s\n", 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); + } return 0; } /* Take first argument as the grammar */ |