]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Add help option
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 11 Jan 2011 09:19:57 +0000 (10:19 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 11 Jan 2011 09:19:57 +0000 (10:19 +0100)
fwp/mngr/fwp_mngr.c

index aa2d8505338848c420c9368d3c716cf95322f9e1..1b66aacd5efd4176b7c39d5c302423423cdb554b 100644 (file)
@@ -115,6 +115,7 @@ usage(void)
        printf("  -b, --bitrate <mbits/s>\n");
        printf("  -o, --ofdm\n");
        printf("  -s, --short-preamble\n");
+       printf("  -h, --help\n");
 }
 
 int main(int argc, char *argv[])
@@ -128,7 +129,7 @@ int main(int argc, char *argv[])
                priv.bypass = true;
 
 
-       while ((opt = getopt_long(argc, argv, "b:l:os", &long_opts[0], NULL)) != EOF) {
+       while ((opt = getopt_long(argc, argv, "b:hl:os", &long_opts[0], NULL)) != EOF) {
                switch (opt) {
                        case 'l':
                                ul_log_domain_arg2levels(optarg);