From 2139105da2192dafe4681c7f553d19d55a042d58 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Mon, 26 Aug 2013 00:40:05 +0400
Subject: [PATCH] [Darlan] Expand --help. Fixes #7439

---
 src/gajim.py | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/gajim.py b/src/gajim.py
index 74b75f7c23..e60f07bb72 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -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()
-- 
GitLab