summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-18 19:33:44 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-18 19:33:44 -0400
commit4324e0063a0293de4634f2368439640534610a85 (patch)
tree79bf40c7c6a71803efddb2c794866045e530af1f
parentad77b246574f7126a87e5202fc202ff1c0708681 (diff)
Improve the librexgettext --help text. (also, update the copyright)
-rwxr-xr-xsrc/lib/librexgettext18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/librexgettext b/src/lib/librexgettext
index c82b9ae..db575d6 100755
--- a/src/lib/librexgettext
+++ b/src/lib/librexgettext
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copyright (C) 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net>
+# Copyright (C) 2013-2016 Luke Shumaker <lukeshu@sbcglobal.net>
#
# License: GNU GPLv2+
#
@@ -46,17 +46,25 @@ usage() {
print 'Usage: %s [OPTIONS] FILES...' "${0##*/}"
print 'Generates .pot files for programs using libremessages'
echo
+ prose 'In librexgettext, there are 2 types of keywords:'
+ bullet 'simple: Simple keywords are just like normal xgettext'
+ bullet 'prose: Prose keywords are similar, but the text is
+ word-wrapped'
prose 'The keyword format is the same as in GNU xgettext.'
echo
+ prose 'The libremessages `flag` command is also handled
+ specially, and is not configurable as a keyword.'
+ echo
prose 'The default simple keywords are: %s' "${default_simple[*]#--keyword=}"
echo
prose 'The default prose keywords are: %s' "${default_prose[*]#--keyword=}"
echo
print 'Options:'
- flag '--simple=KEYWORD' 'Look for KEYWORD as an additional simple keyword'
- flag '--prose=KEYWORD' 'Look for KEYWORD as an additional prose keyword'
- flag '-k' 'Disable using the default keywords'
- flag '-h, --help' 'Show this text'
+ flag \
+ '--simple=KEYWORD' 'Look for KEYWORD as an additional simple keyword' \
+ '--prose=KEYWORD' 'Look for KEYWORD as an additional prose keyword' \
+ '-k' 'Disable using the default keywords' \
+ '-h, --help' 'Show this text'
}
xgettext-sh() {