summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-06-25 16:17:54 +0000
committerBruno Haible <bruno@clisp.org>2001-06-25 16:17:54 +0000
commitfba10f71c7f584937441a400b1464f7347ba9ec1 (patch)
tree8efd82ecf8fb6966ea32f4f4b34f5c57d67209f4 /src
parenta917df7f77e9122a978ecdbc6d2d9165ace64ff9 (diff)
downloadexternal_gettext-fba10f71c7f584937441a400b1464f7347ba9ec1.zip
external_gettext-fba10f71c7f584937441a400b1464f7347ba9ec1.tar.gz
external_gettext-fba10f71c7f584937441a400b1464f7347ba9ec1.tar.bz2
Improved usage message.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/msggrep.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dfd22bd..fb2cc07 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2001-06-25 Bruno Haible <haible@clisp.cons.org>
+
+ * msggrep.c (usage): Explain the pattern syntax.
+
2001-06-18 Karl Eichwalder <ke@suse.de>
* msgcomm.c (long_options): Add '--unique' option as documented
diff --git a/src/msggrep.c b/src/msggrep.c
index 576c423..47b0eef 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\