From cab47cfc4851b2602243c8e7dfff3b78182bfbf8 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sat, 21 Mar 2020 19:02:39 -0400 Subject: [PATCH] -h command line option for help. --- src/direwolf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/direwolf.c b/src/direwolf.c index 7bc0dcc..32db610 100644 --- a/src/direwolf.c +++ b/src/direwolf.c @@ -373,7 +373,7 @@ int main (int argc, char *argv[]) /* ':' following option character means arg is required. */ - c = getopt_long(argc, argv, "P:B:gjJD:U:c:pxr:b:n:d:q:t:ul:L:Sa:E:T:e:X:", + c = getopt_long(argc, argv, "hP:B:gjJD:U:c:pxr:b:n:d:q:t:ul:L:Sa:E:T:e:X:", long_options, &option_index); if (c == -1) break; @@ -504,9 +504,10 @@ int main (int argc, char *argv[]) } break; + case 'h': // -h for help case '?': - /* Unknown option message was already printed. */ + /* For '?' unknown option message was already printed. */ usage (argv); break;