[Darlan]Fix gajim-history-manager -help and gajim-remote -help. See #7439
This commit is contained in:
parent
b0dcfce121
commit
0a9697b346
|
@ -439,7 +439,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]:
|
||||
|
|
|
@ -71,7 +71,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