aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-28 14:50:07 +0000
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-28 14:50:07 +0000
commit45917f48483f4bea911c8371a4df6862093cfedb (patch)
treefcc1ff697135d82295ec9d6bccdc6cd2c565927d /tshark.c
parent647c11d4d8e57498dd7aad4cab6fb653981fe867 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39175 f5534014-38df-0310-8fa8-9805f1628bb7
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,