From cee44aadbf091c08a2a1f6b5468edf3cadc6f43d Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 6 Jul 2017 20:31:31 +0200 Subject: [PATCH] jp (shell): don't print header if a command is specified in help --- frontends/src/jp/cmd_shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/src/jp/cmd_shell.py b/frontends/src/jp/cmd_shell.py index 42575cc8..e56d4afe 100644 --- a/frontends/src/jp/cmd_shell.py +++ b/frontends/src/jp/cmd_shell.py @@ -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:')))