aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-07-08 16:25:13 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-07-08 16:25:13 +0000
commit36d3734dcbe9b5ce133d24b7cbe7ce5e9b632996 (patch)
treed1e4f856d2a4edd8dc9946c15b74c7993e5c4542 /ui/gtk/main.c
parent87646b1126e69d0405fe0d22a80f4a36807d1a36 (diff)
From Jim Young via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8906 :
This patch augments Wireshark's and tshark's augument usage reports (-? and -t?) and the Wireshark and tshark man pages to list all available timestamp options available for the -t option. svn path=/trunk/; revision=50445
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r--ui/gtk/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index a6fa73f5b7..7028b69380 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -1205,7 +1205,7 @@ print_usage(gboolean print_ver) {
fprintf(output, " filter\n");
fprintf(output, " -j search backwards for a matching packet after \"-J\"\n");
fprintf(output, " -m <font> set the font name used for most text\n");
- fprintf(output, " -t ad|a|r|d|dd|e output format of time stamps (def: r: rel. to first)\n");
+ fprintf(output, " -t a|ad|d|dd|e|r|u|ud output format of time stamps (def: r: rel. to first)\n");
fprintf(output, " -u s|hms output format of seconds (def: s: seconds)\n");
fprintf(output, " -X <key>:<value> eXtension options, see man page for details\n");
fprintf(output, " -z <statistics> show various statistics, see man page for details\n");
@@ -2705,8 +2705,9 @@ main(int argc, char *argv[])
timestamp_set_type(TS_UTC_WITH_DATE);
else {
cmdarg_err("Invalid time stamp type \"%s\"", optarg);
- cmdarg_err_cont("It must be \"r\" for relative, \"a\" for absolute,");
- cmdarg_err_cont("\"ad\" for absolute with date, or \"d\" for delta.");
+ cmdarg_err_cont("It must be \"a\" for absolute, \"ad\" for absolute with date, \"d\" for delta,");
+ cmdarg_err_cont("\"dd\" for delta displayed, \"e\" for epoch, \"r\" for relative, \"u\" for UTC, ");
+ cmdarg_err_cont("or \"ud\" for UTC with date.");
exit(1);
}
break;