From 449656a0a459ab55ce6ec9a3bfa094227eb6d5dc Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 1 Jul 2024 19:16:21 -0400 Subject: listbas: add -h (synonym for --help). --- listbas.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'listbas.c') diff --git a/listbas.c b/listbas.c index 329ff97..9577cec 100644 --- a/listbas.c +++ b/listbas.c @@ -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); -- cgit v1.2.3