[Darlan]Fix gajim-history-manager -help and gajim-remote -help. See #7439
This commit is contained in:
parent
0320ad611b
commit
2cdb273d2e
|
@ -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]:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue