Skip to content

Commit

Permalink
* examples/fadot.c: accept -h option to print usage
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lutterkort committed Aug 8, 2011
1 parent ead3e5c commit 93e9ada
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/fadot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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;
Expand Down

0 comments on commit 93e9ada

Please sign in to comment.