diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-02-20 03:06:46 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-02-20 03:06:46 +0000 |
commit | 503cab9ff763b346db96b36e756152599f2d4a13 (patch) | |
tree | e8f4785977472fe587c315544ec97759417ed0cc /tshark.c | |
parent | 8f478c5c44b749e8ced5771da8b8dd59113dc66d (diff) | |
download | wireshark-503cab9ff763b346db96b36e756152599f2d4a13.tar.gz wireshark-503cab9ff763b346db96b36e756152599f2d4a13.tar.bz2 wireshark-503cab9ff763b346db96b36e756152599f2d4a13.zip |
From Edwin Groothuis via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8353 : Document http-related '-z' statistics; also add document -z help.
From me: Don't print an error message for "-z help".
(Only "http,stat," is suitable for backport to 1.8 and 1.6)
svn path=/trunk/; revision=47763
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1479,6 +1479,11 @@ main(int argc, char *argv[]) part of a tap filter. Instead, we just add the argument to a list of stat arguments. */ if (!process_stat_cmd_arg(optarg)) { + if (strcmp("help", optarg)==0) { + fprintf(stderr, "tshark: The available statistics for the \"-z\" option are:\n"); + list_stat_cmd_args(); + return 0; + } cmdarg_err("Invalid -z argument \"%s\".", optarg); cmdarg_err_cont(" -z argument must be one of :"); list_stat_cmd_args(); |