summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clcommands.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/clcommands.py b/clcommands.py
index e683ccf..22b5162 100644
--- a/clcommands.py
+++ b/clcommands.py
@@ -155,11 +155,10 @@ class CommandLine(dict):
print '[--rc-file=<configuration file>]',
print '<command> [options] <command argument>...'
if self.doc:
- print '\n%s\n' % self.doc
- else:
- print
- print '''Type "%(pgm)s <command> --help" for more information about a specific
- command. Available commands are :\n''' % self.__dict__
+ print '\n%s' % self.doc
+ print '''
+Type "%(pgm)s <command> --help" for more information about a specific
+command. Available commands are :\n''' % self.__dict__
max_len = max([len(cmd) for cmd in self])
padding = ' ' * max_len
for cmdname, cmd in sorted(self.items()):