Make "-h" a valid flag.

svn path=/trunk/; revision=26799
This commit is contained in:
Gerald Combs 2008-11-17 21:46:57 +00:00
parent bf796ee2a6
commit 9b3a726bef
1 changed files with 2 additions and 1 deletions

View File

@ -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;