From 93e9adab7ec36630495a04f5a281540ad32e1187 Mon Sep 17 00:00:00 2001 From: David Lutterkort Date: Mon, 8 Aug 2011 16:02:26 -0700 Subject: [PATCH] * examples/fadot.c: accept -h option to print usage --- examples/fadot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/fadot.c b/examples/fadot.c index 0edd8132e..cb514cc89 100644 --- a/examples/fadot.c +++ b/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;