[Darlan] Expand --help. Fixes #7439

This commit is contained in:
Denis Fomin 2013-08-26 00:40:05 +04:00
parent 19329b89e7
commit 2139105da2
1 changed files with 15 additions and 3 deletions

View File

@ -132,9 +132,21 @@ def parseOpts():
sys.exit(2)
for o, a in opts:
if o in ('-h', '--help'):
print 'gajim [--help] [--quiet] [--verbose] ' + \
'[--loglevel subsystem=level[,subsystem=level[...]]] ' + \
'[--profile name] [--config-path]'
print 'Usage: ' + \
'\n gajim [options] filename\n' + \
'\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()
elif o in ('-q', '--quiet'):
logging_helpers.set_quiet()