From 2cdb273d2ec51432d201d0d9c08406f5ca45bb9a Mon Sep 17 00:00:00 2001 From: Denis Fomin <fominde@gmail.com> Date: Mon, 26 Aug 2013 09:16:51 +0400 Subject: [PATCH] [Darlan]Fix gajim-history-manager -help and gajim-remote -help. See #7439 --- src/gajim-remote.py | 3 ++- src/history_manager.py | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gajim-remote.py b/src/gajim-remote.py index 6b43a26f7e..5472474f38 100644 --- a/src/gajim-remote.py +++ b/src/gajim-remote.py @@ -444,7 +444,8 @@ class GajimRemote: """ 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 --git a/src/history_manager.py b/src/history_manager.py index fb7115b41b..5ecad2e96f 100644 --- a/src/history_manager.py +++ b/src/history_manager.py @@ -70,7 +70,12 @@ def parseOpts(): 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 -- GitLab