commit: 2fd5a0ccc059a64a25aa292b7899af9e3ccf94f0 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Fri Jun 21 18:23:31 2019 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Fri Jun 21 18:23:31 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2fd5a0cc
qgrep: fix command descriptions Bug: https://bugs.gentoo.org/688442 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> man/qgrep.1 | 32 ++++++++++++++++---------------- qgrep.c | 1 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/man/qgrep.1 b/man/qgrep.1 index 6701061..fbde702 100644 --- a/man/qgrep.1 +++ b/man/qgrep.1 @@ -24,43 +24,43 @@ Ignore case distinctions. Print the filename for each match. .TP \fB\-c\fR, \fB\-\-count\fR -Print the package or eclass name for each match. +Only print a count of matching lines per FILE. .TP \fB\-l\fR, \fB\-\-list\fR -Only print a count of matching lines per FILE. +Only print FILE names containing matches. .TP \fB\-L\fR, \fB\-\-invert\-list\fR -Only print FILE names containing matches. +Only print FILE names containing no match. .TP \fB\-e\fR, \fB\-\-regexp\fR -Only print FILE names containing no match. +Use PATTERN as a regular expression. .TP \fB\-x\fR, \fB\-\-extended\fR -Use PATTERN as a regular expression. +Use PATTERN as an extended regular expression. .TP \fB\-J\fR, \fB\-\-installed\fR -Use PATTERN as an extended regular expression. +Search in installed ebuilds instead of the tree. .TP \fB\-E\fR, \fB\-\-eclass\fR -Search in installed ebuilds instead of the tree. +Search in eclasses instead of ebuilds. .TP \fB\-s\fR, \fB\-\-skip\-comments\fR -Search in eclasses instead of ebuilds. +Skip comments lines. .TP \fB\-R\fR, \fB\-\-repo\fR -Skip comments lines. +Print source repository name for each match (implies -N). .TP \fB\-S\fR \fI<arg>\fR, \fB\-\-skip\fR \fI<arg>\fR -Print source repository name for each match (implies -N). +Skip lines matching <arg>. .TP \fB\-B\fR \fI<arg>\fR, \fB\-\-before\fR \fI<arg>\fR -Skip lines matching <arg>. +Print <arg> lines of leading context. .TP \fB\-A\fR \fI<arg>\fR, \fB\-\-after\fR \fI<arg>\fR -Print <arg> lines of leading context. +Print <arg> lines of trailing context. .TP \fB\-\-root\fR \fI<arg>\fR -Print <arg> lines of trailing context. +Set the ROOT env var. .TP \fB\-v\fR, \fB\-\-verbose\fR Prefix each matching line with filename (like \fB-H\fR). When this @@ -70,13 +70,13 @@ option is given multiple times, also linenumbers are printed. Do not prefix each match with filename. .TP \fB\-C\fR, \fB\-\-nocolor\fR -Tighter output; suppress warnings. +Don't output color. .TP \fB\-h\fR, \fB\-\-help\fR -Don't output color. +Print this help and exit. .TP \fB\-V\fR, \fB\-\-version\fR -Print this help and exit. +Print version and exit. .SH "REPORTING BUGS" Please report bugs via http://bugs.gentoo.org/ diff --git a/qgrep.c b/qgrep.c index 003ead2..1f6d0de 100644 --- a/qgrep.c +++ b/qgrep.c @@ -47,7 +47,6 @@ static const char * const qgrep_opts_help[] = { "Select non-matching lines", "Ignore case distinctions", "Print the filename for each match", - "Print the package or eclass name for each match", "Only print a count of matching lines per FILE", "Only print FILE names containing matches", "Only print FILE names containing no match",