From e5d3293cd7641869d343c5594d67df532271656f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Mart=C3=ADn-de-Nicol=C3=A1s?= Date: Tue, 28 May 2019 16:31:36 -0500 Subject: [PATCH] Added short form -u for option --utf --- tools/exitsnoop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/exitsnoop.py b/tools/exitsnoop.py index 13a1444c5c84..0209e0d6b6c6 100755 --- a/tools/exitsnoop.py +++ b/tools/exitsnoop.py @@ -24,7 +24,7 @@ exitsnoop # trace all process termination exitsnoop -x # trace only fails, exclude exit(0) exitsnoop -t # include timestamps (local time) - exitsnoop --utc # include timestamps (UTC) + exitsnoop -u # include timestamps (UTC) exitsnoop -p 181 # only trace PID 181 exitsnoop --label=exit # label each output line with 'exit' """ @@ -58,7 +58,7 @@ def _getParser(): epilog=_examples) a=parser.add_argument a("-t", "--timestamp", action="store_true", help="include timestamp (local time default)") - a("--utc", action="store_true", help="include timestamp in UTC (-t implied)") + a("-u", "--utc", action="store_true", help="include timestamp in UTC (-t implied)") a("-p", "--pid", help="trace this PID only") a("--label", help="label each line") a("-x", "--failed", action="store_true", help="trace only fails, exclude exit(0)")