Revision 4e01956e

b/kamaki/cli/command_shell.py
154 154
            """
155 155
            subcmd, cmd_args = cmd.parse_out(split_input(line))
156 156
            self._history.add(' '.join([cmd.path.replace('_', ' '), line]))
157
            cmd_parser = ArgumentParseManager(
158
                cmd.name,
159
                dict(self._parser.arguments))
160
            cmd_parser.arguments.pop('options', None)
161
            cmd_parser.arguments.pop('debug', None)
162
            cmd_parser.arguments.pop('verbose', None)
163
            cmd_parser.arguments.pop('include', None)
164
            cmd_parser.arguments.pop('silent', None)
157
            tmp_args = dict(self._parser.arguments)
158
            tmp_args.pop('options', None)
159
            tmp_args.pop('debug', None)
160
            tmp_args.pop('verbose', None)
161
            tmp_args.pop('include', None)
162
            tmp_args.pop('silent', None)
163
            cmd_parser = ArgumentParseManager(cmd.name, dict(tmp_args))
165 164

  
166 165
            cmd_parser.parser.description = subcmd.help
167 166

  
......
193 192
                            arg.default)
194 193

  
195 194
                    exec_cmd(instance,
196
                        cmd_parser.unparsed,
195
                        [term for term in cmd_parser.unparsed\
196
                            if not term.startswith('-')],
197 197
                        cmd_parser.parser.print_help)
198 198
                except (ClientError, CLIError) as err:
199 199
                    print_error_message(err)

Also available in: Unified diff