jp (shell): don't print header if a command is specified in help
This commit is contained in:
parent
6672bfc57b
commit
cee44aadbf
1 changed files with 2 additions and 1 deletions
|
|
@ -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:')))
|
||||
|
|
|
|||
Loading…
Reference in a new issue