aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-17 21:46:57 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-17 21:46:57 +0000
commitddff183360226eb9387407b8216a8a6c6dcd4ee9 (patch)
tree06ddd4d5ffc3bcd507517e97b386cead8834f116 /randpkt.c
parent7b11d2ce9fdfd6b1c18d90f7eb0e826600a6907a (diff)
Make "-h" a valid flag.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26799 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/randpkt.c b/randpkt.c
index 84bbd2dee1..6a275c22db 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -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;