changeset 8c3594b5c940 in /home/hg/repos/gajim author: Denis Fomin <fomi...@gmail.com> branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=8c3594b5c940 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 files changed, 8 insertions(+), 2 deletions(-) diffs (30 lines): diff -r 9567dc337b9e -r 8c3594b5c940 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 @@ -439,7 +439,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 9567dc337b9e -r 8c3594b5c940 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 @@ -71,7 +71,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 _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits