aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-09-28 14:50:07 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-09-28 14:50:07 +0000
commitaa1199d01fda1bd13870112b4f06009ddfd7de9d (patch)
treefcc1ff697135d82295ec9d6bccdc6cd2c565927d /tshark.c
parente851859a0e4c5b3c64a0c4c1bf32e49b2d52c509 (diff)
Rather than complain and quit if -V is missing when -O <protocols> is used, do the user a favor and continue as if -V had been specified. Add explicit documentation of the -O <protocols> option to the man page.
svn path=/trunk/; revision=39175
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tshark.c b/tshark.c
index 2f4ecb4fb9..1697fd8f73 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1235,9 +1235,6 @@ main(int argc, char *argv[])
break;
}
break;
- case 'O': /* Only output these protocols */
- output_only = g_strdup(optarg);
- break;
case 'q': /* Quiet */
quiet = TRUE;
break;
@@ -1328,6 +1325,9 @@ main(int argc, char *argv[])
return 0;
break;
}
+ case 'O': /* Only output these protocols */
+ output_only = g_strdup(optarg);
+ /* FALLTHROUGH */
case 'V': /* Verbose */
verbose = TRUE;
/* The user asked for a verbose output, so let's ensure they get it,