[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
|
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):
|
for command in sorted(self.commands):
|
||||||
s += ' ' + command
|
s += ' ' + command
|
||||||
for arg in self.commands[command][1]:
|
for arg in self.commands[command][1]:
|
||||||
|
|
|
@ -71,7 +71,12 @@ def parseOpts():
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
for o, a in opts:
|
for o, a in opts:
|
||||||
if o in ('-h', '--help'):
|
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()
|
sys.exit()
|
||||||
elif o in ('-c', '--config-path'):
|
elif o in ('-c', '--config-path'):
|
||||||
config_path = a
|
config_path = a
|
||||||
|
|
Loading…
Reference in New Issue