pkill: remove -v match inversion option

The option -v does not make much sense in pkill context.

Reported-By: "Jason A. Spiro" <jasonspiro4@gmail.com>
Bug-Debian: http://bugs.debian.org/558044
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-02-11 20:33:17 +01:00
parent a1f8166642
commit 1af18c260a
2 changed files with 5 additions and 5 deletions

View File

@ -110,7 +110,7 @@ Only match processes whose real user ID is listed. Either the numerical or
symbolical value may be used. symbolical value may be used.
.TP .TP
\fB\-v\fR, \fB\-\-inverse\fR\fR \fB\-v\fR, \fB\-\-inverse\fR\fR
Negates the matching. Negates the matching. (\fBpgrep\fP only.)
.TP .TP
\fB\-x\fR, \fB\-\-exact\fR\fR \fB\-x\fR, \fB\-\-exact\fR\fR
Only match processes whose name (or command line if \-f is specified) Only match processes whose name (or command line if \-f is specified)

View File

@ -87,7 +87,8 @@ static int __attribute__ ((__noreturn__)) usage(int opt)
if (i_am_pkill == 0) { if (i_am_pkill == 0) {
fputs(_(" -c, --count count of matching processes\n" fputs(_(" -c, --count count of matching processes\n"
" -d, --delimeter <string> specify output delimeter\n" " -d, --delimeter <string> specify output delimeter\n"
" -l, --list-name list PID and process name\n"), fp); " -l, --list-name list PID and process name\n"
" -v, --inverse negates the matching\n"), fp);
} }
if (i_am_pkill == 1) { if (i_am_pkill == 1) {
fputs(_(" -<sig>, --signal <sig> signal to send (either number or name)\n" fputs(_(" -<sig>, --signal <sig> signal to send (either number or name)\n"
@ -103,7 +104,6 @@ static int __attribute__ ((__noreturn__)) usage(int opt)
" -t, --terminal <tty,...> match by controlling terminal\n" " -t, --terminal <tty,...> match by controlling terminal\n"
" -u, --euid <id,...> match by effective IDs\n" " -u, --euid <id,...> match by effective IDs\n"
" -U, --uid <id,...> match by real IDs\n" " -U, --uid <id,...> match by real IDs\n"
" -v, --inverse negates the matching\n"
" -x, --exact match exectly with command name\n" " -x, --exact match exectly with command name\n"
" -F, --pidfile <file> read PIDs from file\n" " -F, --pidfile <file> read PIDs from file\n"
" -L, --logpidfile fail if PID file is not locked\n"), fp); " -L, --logpidfile fail if PID file is not locked\n"), fp);
@ -616,10 +616,10 @@ static void parse_opts (int argc, char **argv)
strcat (opts, "e"); strcat (opts, "e");
} else { } else {
/* These options are for pgrep only */ /* These options are for pgrep only */
strcat (opts, "cld:"); strcat (opts, "cld:v");
} }
strcat (opts, "LF:fnovxP:g:s:u:U:G:t:?Vh"); strcat (opts, "LF:fnoxP:g:s:u:U:G:t:?Vh");
while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != -1) { while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != -1) {
switch (opt) { switch (opt) {