]> granicus.if.org Git - procps-ng/commitdiff
watch: correct differences option, eliminate duplicate help text
authorJim Warner <james.warner@comcast.net>
Wed, 4 Jan 2012 20:10:09 +0000 (14:10 -0600)
committerCraig Small <csmall@enc.com.au>
Wed, 4 Jan 2012 23:07:08 +0000 (10:07 +1100)
watch.1
watch.c

diff --git a/watch.1 b/watch.1
index ac81f4679b3c1e00856dd8971fb61cd2cae8ce6c..7e2edc8102c1a721600a99c5fb036ba4cf4de375 100644 (file)
--- a/watch.1
+++ b/watch.1
@@ -15,7 +15,7 @@ program is run every 2 seconds.
 will run until interrupted.
 .SH OPTIONS
 .TP
-\fB\-f\fR, \fB\-\-differences\fR
+\fB\-d\fR, \fB\-\-differences\fR
 Highlight the differences between successive updates.
 .TP
 \fB\-n\fR, \fB\-\-interval\fR \fIseconds\fR
diff --git a/watch.c b/watch.c
index 769ce3cf1f52b503263e4b0de9b4f11f682daba3..66e7e2495470afd11e9cf4df17595c1650ca1151 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -66,14 +66,12 @@ static void __attribute__ ((__noreturn__))
        fputs(USAGE_OPTIONS, out);
        fputs(_("  -b, --beep             beep if command has a non-zero exit\n"
                "  -c, --color            interpret ANSI color sequences\n"
+               "  -d, --differences      highlight changes between updates\n"
                "  -e, --errexit          exit if command has a non-zero exit\n"
-               "  -f, --differences      highlight changes between updates\n"
                "  -n, --interval <secs>  seconds to wait between updates\n"
                "  -p, --precise          attempt run command in precise intervals\n"
                "  -t, --no-title         turn off header\n"
-               "  -x, --exec             pass command to exec instead of \"sh -c\"\n"
-               "  -h, --help             display this help text\n"
-               "  -v, --version          display version information and exit\n"), out);
+               "  -x, --exec             pass command to exec instead of \"sh -c\"\n"), out);
        fputs(USAGE_SEPARATOR, out);
        fputs(USAGE_HELP, out);
        fputs(_(" -v, --version  output version information and exit\n"), out);