diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-01 19:16:21 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-01 19:16:21 -0400 |
commit | 449656a0a459ab55ce6ec9a3bfa094227eb6d5dc (patch) | |
tree | d8a5d4dda7cc99b1b2fa6f8155b400e53ba9a95d | |
parent | 869862a4db0c727e3797b15d41d6b865cb8f3350 (diff) | |
download | bw-atari8-tools-449656a0a459ab55ce6ec9a3bfa094227eb6d5dc.tar.gz |
listbas: add -h (synonym for --help).
-rw-r--r-- | listbas.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,12 +27,13 @@ void print_help(void) { void parse_args(int argc, char **argv) { int opt; - while( (opt = getopt(argc, argv, "viam")) != -1) { + while( (opt = getopt(argc, argv, "viamh")) != -1) { switch(opt) { case 'v': verbose = 1; break; case 'i': immediate = 1; break; case 'a': a8cat = magazine = 0; break; case 'm': a8cat = magazine = 1; break; + case 'h': print_help(); exit(0); default: print_help(); exit(1); |