Mercurial > libervia-backend
diff frontends/src/jp/cmd_shell.py @ 2317:f4e05600577b
jp (arg_tools): args is not modified anymore in get_use_args + fixed args returned + parser_args are returned separatly (return is now a tuple)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Jul 2017 22:49:55 +0200 |
parents | 8d9bd5d77336 |
children | 5129a0506739 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_shell.py Sat Jul 08 21:54:24 2017 +0200 +++ b/frontends/src/jp/cmd_shell.py Sat Jul 08 22:49:55 2017 +0200 @@ -182,13 +182,13 @@ args = self.parse_args(args) # args may be modified by use_args # to remove subparsers from it - use_args = arg_tools.get_use_args(self.host, + parser_args, use_args = arg_tools.get_use_args(self.host, args, self.use, verbose=self.verbose, parser=self._cur_parser ) - cmd_args = self.path + use_args + args + cmd_args = self.path + parser_args + use_args self.run_cmd(cmd_args) def do_use(self, args):