w: correct program help & man page regarding arguments

This commit is an outgrowth of the research into a bug
involving the recently added enum 'PROCPS_PIDS_extra'.

Since this program is not equipped to filter more than
one user, the help text and man document were updated.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2015-09-06 00:00:00 -05:00 committed by Craig Small
parent 14359a0afe
commit 4c31bb49e5
2 changed files with 3 additions and 3 deletions

4
w.1
View File

@ -1,11 +1,11 @@
.\" -*-Nroff-*- .\" -*-Nroff-*-
.\" .\"
.TH W "1" "May 2012" "procps-ng" "User Commands" .TH W "1" "September 2015" "procps-ng" "User Commands"
.SH NAME .SH NAME
w \- Show who is logged on and what they are doing. w \- Show who is logged on and what they are doing.
.SH SYNOPSIS .SH SYNOPSIS
.B w .B w
[\fIoptions\fR] \fIuser\fR [...] [\fIoptions\fR] [\fIuser\fR]
.SH DESCRIPTION .SH DESCRIPTION
.B w .B w
displays information about the users currently on the machine, and their displays information about the users currently on the machine, and their

2
w.c
View File

@ -496,7 +496,7 @@ static void __attribute__ ((__noreturn__))
{ {
fputs(USAGE_HEADER, out); fputs(USAGE_HEADER, out);
fprintf(out, fprintf(out,
_(" %s [options]\n"), program_invocation_short_name); _(" %s [options] [user]\n"), program_invocation_short_name);
fputs(USAGE_OPTIONS, out); fputs(USAGE_OPTIONS, out);
fputs(_(" -h, --no-header do not print header\n"),out); fputs(_(" -h, --no-header do not print header\n"),out);
fputs(_(" -u, --no-current ignore current process username\n"),out); fputs(_(" -u, --no-current ignore current process username\n"),out);