diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-03 06:12:58 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-03 06:12:58 -0500 |
| commit | e43d2a7c9724254f8dff0719bca99ffd5d488e6b (patch) | |
| tree | 73023d1b0d7236485d1c1f9966c7d4fa1566949f | |
| parent | e5222de6f551735cece5ff856aaa4937d27a54d5 (diff) | |
| download | alftools-e43d2a7c9724254f8dff0719bca99ffd5d488e6b.tar.gz | |
alfsum: add options to --help.
| -rw-r--r-- | src/alfsum.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/alfsum.c b/src/alfsum.c index b6995b2..14ffd83 100644 --- a/src/alfsum.c +++ b/src/alfsum.c @@ -23,9 +23,12 @@ int main(int argc, char **argv) { if(argc < 2 || !strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) { printf("alfsum (ALF checksum calculator) v" VERSION " by B. Watson. WTFPL.\n" - "Usage: %s filename [filename(s) ...]\n" - "\t(use - to read from standard input)\n", + "Usage: %s filename [filename(s) ...] | [--help | -h] | [--version | -V]\n" + "Use - to read from standard input.\n", self); + puts("Options:"); + puts(" --version, -V: show version number."); + puts(" --help, -h: show this help message."); return (argc < 2) ? -1 : 0; } |
