-h command line option for help.

This commit is contained in:
wb2osz 2020-03-21 19:02:39 -04:00
parent 1484350465
commit cab47cfc48
1 changed files with 3 additions and 2 deletions

View File

@ -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;