aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-01 19:16:21 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-01 19:16:21 -0400
commit449656a0a459ab55ce6ec9a3bfa094227eb6d5dc (patch)
treed8a5d4dda7cc99b1b2fa6f8155b400e53ba9a95d
parent869862a4db0c727e3797b15d41d6b865cb8f3350 (diff)
downloadbw-atari8-tools-449656a0a459ab55ce6ec9a3bfa094227eb6d5dc.tar.gz
listbas: add -h (synonym for --help).
-rw-r--r--listbas.c3
1 files changed, 2 insertions, 1 deletions
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);