[Darlan] Expand --help. Fixes #7439
This commit is contained in:
parent
2af5a235cf
commit
62875aba80
18
src/gajim.py
18
src/gajim.py
|
@ -138,9 +138,21 @@ 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('gajim [--help] [--quiet] [--verbose] ' + \
|
print('Usage: ' + \
|
||||||
'[--loglevel subsystem=level[,subsystem=level[...]]] ' + \
|
'\n gajim [options] filename\n' + \
|
||||||
'[--profile name] [--config-path]')
|
'\nOptions:' + \
|
||||||
|
'\n -h, --help ' + \
|
||||||
|
_('Show this help message and exit') + \
|
||||||
|
'\n -q, --quiet ' + _\
|
||||||
|
('Show only critical errors') + \
|
||||||
|
'\n -v, --verbose ' + \
|
||||||
|
_('Print xml stanzas and other debug information') + \
|
||||||
|
'\n -p, --profile ' + \
|
||||||
|
_('Use config.name in configuration directory') + \
|
||||||
|
'\n -c, --config-path ' + \
|
||||||
|
_('Set configuration directory') + \
|
||||||
|
'\n -l, --loglevel ' + \
|
||||||
|
_('Configure logging system'))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif o in ('-q', '--quiet'):
|
elif o in ('-q', '--quiet'):
|
||||||
logging_helpers.set_quiet()
|
logging_helpers.set_quiet()
|
||||||
|
|
Loading…
Reference in New Issue