From 4324e0063a0293de4634f2368439640534610a85 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 18 Apr 2016 19:33:44 -0400 Subject: Improve the librexgettext --help text. (also, update the copyright) --- src/lib/librexgettext | 18 +++++++++++++----- 1 file 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 +# Copyright (C) 2013-2016 Luke Shumaker # # 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() { -- cgit v1.2.3