changeset 58b0f93e4ce1 in /home/hg/repos/gajim
author: Denis Fomin fominde@gmail.com branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=58b0f93e4ce1 description: [Darlan]Fix gajim-history-manager -help and gajim-remote -help. See #7439
diffstat:
src/gajim-remote.py | 3 ++- src/history_manager.py | 7 ++++++- 2 файлов изменено, 8 вставок(+), 2 удалений(-)
различия (30 строк):
diff -r ded33bd80e52 -r 58b0f93e4ce1 src/gajim-remote.py --- a/src/gajim-remote.py Mon Aug 26 00:59:46 2013 +0400 +++ b/src/gajim-remote.py Mon Aug 26 09:16:51 2013 +0400 @@ -444,7 +444,8 @@ """ Print usage, and list available commands """ - s = _('Usage: %s command [arguments]\nCommand is one of:\n' ) % BASENAME + s = _('Usage:\n %s command [arguments]\n\nCommand is one of:\n' ) % ( + BASENAME) for command in sorted(self.commands): s += ' ' + command for arg in self.commands[command][1]: diff -r ded33bd80e52 -r 58b0f93e4ce1 src/history_manager.py --- a/src/history_manager.py Mon Aug 26 00:59:46 2013 +0400 +++ b/src/history_manager.py Mon Aug 26 09:16:51 2013 +0400 @@ -70,7 +70,12 @@ sys.exit(2) for o, a in opts: if o in ('-h', '--help'): - print 'history_manager [--help] [--config-path]' + print _('Usage:') + \ + '\n gajim-history-manager [options] filename\n\n' + \ + _('Options:') + \ + '\n -h, --help ' + \ + _('Show this help message and exit') + \ + '\n -c, --config-path ' + _('Set logs directory') sys.exit() elif o in ('-c', '--config-path'): config_path = a