From 529fa2e61524d03c8a7907b1ebea78f03794831c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 11 Feb 2012 21:00:05 +0100 Subject: [PATCH] watch: inform about optional argument for -d switch The -d, --differences switch(s) can use optional argument that was not documented earlier. Reported-By: Marian Sigler Bug-Debian: http://bugs.debian.org/597021 Signed-off-by: Sami Kerola --- watch.1 | 6 ++++-- watch.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/watch.1 b/watch.1 index 1e823403..6ed933d2 100644 --- a/watch.1 +++ b/watch.1 @@ -15,8 +15,10 @@ program is run every 2 seconds. will run until interrupted. .SH OPTIONS .TP -\fB\-d\fR, \fB\-\-differences\fR -Highlight the differences between successive updates. +\fB\-d\fR, \fB\-\-differences\fR [\fIpermanent\fR] +Highlight the differences between successive updates. Option will read +optional argument that changes highlight to be permanent, allowing to see what +has changed at least once since first iteration. .TP \fB\-n\fR, \fB\-\-interval\fR \fIseconds\fR Specify update interval. The command will not allow quicker than 0.1 second diff --git a/watch.c b/watch.c index 2408e176..dc119868 100644 --- a/watch.c +++ b/watch.c @@ -67,7 +67,8 @@ 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" + " -d, --differences[=]\n" + " highlight changes between updates\n" " -e, --errexit exit if command has a non-zero exit\n" " -n, --interval seconds to wait between updates\n" " -p, --precise attempt run command in precise intervals\n" -- 2.40.0