Skip to content
Browse files

* examples/fadot.c: accept -h option to print usage

  • Loading branch information...
1 parent ead3e5c commit 93e9adab7ec36630495a04f5a281540ad32e1187 @lutter committed Aug 8, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 examples/fadot.c
View
5 examples/fadot.c
@@ -66,7 +66,7 @@ int main (int argc, char **argv) {
progname = argv[0];
- while ((c = getopt (argc, argv, "nf:o:")) != -1)
+ while ((c = getopt (argc, argv, "nhf:o:")) != -1)
switch (c)
{
case 'n':
@@ -75,6 +75,9 @@ int main (int argc, char **argv) {
case 'f':
file_output = optarg;
break;
+ case 'h':
+ usage();
+ break;
case 'o':
operation = optarg;
break;

0 comments on commit 93e9ada

Please sign in to comment.
Something went wrong with that request. Please try again.