aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/alfsum.c7
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;
}