Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_shell.py @ 3407:2f0be2b7de68
jp: replace `no_lf` argument by `end` in `disp` (same as in `print`)
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:16 +0100 |
parents | 559a625a236b |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3406:4c15271118a2 | 3407:2f0be2b7de68 |
---|---|
144 self.do_do(args) | 144 self.do_do(args) |
145 | 145 |
146 def do_help(self, args): | 146 def do_help(self, args): |
147 """show help message""" | 147 """show help message""" |
148 if not args: | 148 if not args: |
149 self.disp(A.color(C.A_HEADER, _("Shell commands:")), no_lf=True) | 149 self.disp(A.color(C.A_HEADER, _("Shell commands:")), end=' ') |
150 super(Shell, self).do_help(args) | 150 super(Shell, self).do_help(args) |
151 if not args: | 151 if not args: |
152 self.disp(A.color(C.A_HEADER, _("Action commands:"))) | 152 self.disp(A.color(C.A_HEADER, _("Action commands:"))) |
153 help_list = self._cur_parser.format_help().split("\n\n") | 153 help_list = self._cur_parser.format_help().split("\n\n") |
154 print(("\n\n".join(help_list[1 if self.path else 2 :]))) | 154 print(("\n\n".join(help_list[1 if self.path else 2 :]))) |