jp (shell): don't print header if a command is specified in help

This commit is contained in:
Goffi 2017-07-06 20:31:31 +02:00
commit cee44aadbf

View file

@ -141,7 +141,8 @@ class Shell(base.CommandBase, cmd.Cmd):
def do_help(self, args):
"""show help message"""
self.disp(A.color(C.A_HEADER, _(u'Shell commands:')), no_lf=True)
if not args:
self.disp(A.color(C.A_HEADER, _(u'Shell commands:')), no_lf=True)
super(Shell, self).do_help(args)
if not args:
self.disp(A.color(C.A_HEADER, _(u'Action commands:')))