Revision 451a7992 kamaki/cli/command_shell.py

b/kamaki/cli/command_shell.py
45 45

  
46 46
def _init_shell(exe_string, parser):
47 47
    parser.arguments.pop('version', None)
48
    parser.arguments.pop('options', None)
49
    parser.arguments.pop('debug', None)
50
    parser.arguments.pop('verbose', None)
51
    parser.arguments.pop('include', None)
52
    parser.arguments.pop('silent', None)
53 48
    shell = Shell()
54 49
    shell.set_prompt(exe_string)
55 50
    from kamaki import __version__ as version
......
162 157
            cmd_parser = ArgumentParseManager(
163 158
                cmd.name,
164 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)
165 165

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

  
......
188 188
                for name, arg in instance.arguments.items():
189 189
                    arg.value = getattr(cmd_parser.parsed, name, arg.default)
190 190

  
191
                print('prr: %s' % cmd_parser.unparsed)
191 192
                try:
192 193
                    _exec_cmd(instance,
193 194
                        cmd_parser.unparsed,

Also available in: Unified diff