From: Bruno Haible Date: Mon, 25 Jun 2001 16:17:54 +0000 (+0000) Subject: Improved usage message. X-Git-Tag: v0.11~644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba10f71c7f584937441a400b1464f7347ba9ec1;p=thirdparty%2Fgettext.git Improved usage message. --- diff --git a/src/ChangeLog b/src/ChangeLog index dfd22bd6a..fb2cc07fc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-06-25 Bruno Haible + + * msggrep.c (usage): Explain the pattern syntax. + 2001-06-18 Karl Eichwalder * msgcomm.c (long_options): Add '--unique' option as documented diff --git a/src/msggrep.c b/src/msggrep.c index 576c42300..47b0eefec 100644 --- a/src/msggrep.c +++ b/src/msggrep.c @@ -407,8 +407,15 @@ A message is selected if it comes from one of the specified source files,\n\ or if it comes from one of the specified domains,\n\ or if -K is given and its key (msgid or msgid_plural) matches MSGID-PATTERN,\n\ or if -T is given and its translation (msgstr) matches MSGSTR-PATTERN.\n\ +\n\ +When more than one selection criterion is specified, the set of selected\n\ +messages is the union of the selected messages of each criterion.\n\ +\n\ +MSGID-PATTERN or MSGSTR-PATTERN syntax:\n\ + [-E | -F] [-e PATTERN | -f FILE]...\n\ PATTERNs are basic regular expressions by default, or extended regular\n\ expressions if -E is given, or fixed strings if -F is given.\n\ +\n\ -N, --location=SOURCEFILE select messages extracted from SOURCEFILE\n\ -M, --domain=DOMAINNAME select messages belonging to domain DOMAINNAME\n\ -K, --msgid start of patterns for the msgid\n\