watch: correct differences option, eliminate duplicate help text
This commit is contained in:
parent
7ac61b3fa1
commit
f865ccbff9
2
watch.1
2
watch.1
@ -15,7 +15,7 @@ program is run every 2 seconds.
|
|||||||
will run until interrupted.
|
will run until interrupted.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
\fB\-f\fR, \fB\-\-differences\fR
|
\fB\-d\fR, \fB\-\-differences\fR
|
||||||
Highlight the differences between successive updates.
|
Highlight the differences between successive updates.
|
||||||
.TP
|
.TP
|
||||||
\fB\-n\fR, \fB\-\-interval\fR \fIseconds\fR
|
\fB\-n\fR, \fB\-\-interval\fR \fIseconds\fR
|
||||||
|
6
watch.c
6
watch.c
@ -66,14 +66,12 @@ static void __attribute__ ((__noreturn__))
|
|||||||
fputs(USAGE_OPTIONS, out);
|
fputs(USAGE_OPTIONS, out);
|
||||||
fputs(_(" -b, --beep beep if command has a non-zero exit\n"
|
fputs(_(" -b, --beep beep if command has a non-zero exit\n"
|
||||||
" -c, --color interpret ANSI color sequences\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"
|
" -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"
|
" -n, --interval <secs> seconds to wait between updates\n"
|
||||||
" -p, --precise attempt run command in precise intervals\n"
|
" -p, --precise attempt run command in precise intervals\n"
|
||||||
" -t, --no-title turn off header\n"
|
" -t, --no-title turn off header\n"
|
||||||
" -x, --exec pass command to exec instead of \"sh -c\"\n"
|
" -x, --exec pass command to exec instead of \"sh -c\"\n"), out);
|
||||||
" -h, --help display this help text\n"
|
|
||||||
" -v, --version display version information and exit\n"), out);
|
|
||||||
fputs(USAGE_SEPARATOR, out);
|
fputs(USAGE_SEPARATOR, out);
|
||||||
fputs(USAGE_HELP, out);
|
fputs(USAGE_HELP, out);
|
||||||
fputs(_(" -v, --version output version information and exit\n"), out);
|
fputs(_(" -v, --version output version information and exit\n"), out);
|
||||||
|
Loading…
Reference in New Issue
Block a user