[Darlan]Fix gajim-history-manager -help and gajim-remote -help. See #7439

This commit is contained in:
Denis Fomin 2013-08-26 09:16:51 +04:00
parent 0320ad611b
commit 2cdb273d2e
2 changed files with 8 additions and 2 deletions

View File

@ -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]:

View File

@ -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