diff options
author | Gerald Combs <gerald@wireshark.org> | 2008-11-17 21:46:57 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2008-11-17 21:46:57 +0000 |
commit | 9b3a726bef5ae18cdded52dd135b68fa4ba3807a (patch) | |
tree | 06ddd4d5ffc3bcd507517e97b386cead8834f116 /randpkt.c | |
parent | bf796ee2a63bb5fd19a49914f2acdcdb49f45f33 (diff) |
Make "-h" a valid flag.
svn path=/trunk/; revision=26799
Diffstat (limited to 'randpkt.c')
-rw-r--r-- | randpkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -455,7 +455,7 @@ main(int argc, char **argv) int produce_max_bytes = 5000; pkt_example *example; - while ((opt = getopt(argc, argv, "b:c:t:")) != -1) { + while ((opt = getopt(argc, argv, "b:c:ht:")) != -1) { switch (opt) { case 'b': /* max bytes */ produce_max_bytes = atoi(optarg); @@ -474,6 +474,7 @@ main(int argc, char **argv) produce_type = parse_type(optarg); break; + case 'h': default: usage(); break; |