Mercurial > libervia-backend
diff frontends/src/jp/cmd_shell.py @ 2310:5996063ecad7
jp (shell): don't print header if a command is specified in help
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jul 2017 20:31:31 +0200 |
parents | c7a72b75232b |
children | a42a2478abd2 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_shell.py Thu Jul 06 20:28:25 2017 +0200 +++ b/frontends/src/jp/cmd_shell.py Thu Jul 06 20:31:31 2017 +0200 @@ -141,7 +141,8 @@ 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:')))