config module is needed for initializing stuff, but should not be
allowd *after* shell is up and running
self._unparsed += split_input(' \'%s\' ' % term)
self._parser_modified = False
-
+"""
def update_arguments(parser, arguments):
- """Update arguments dict from user input
+ ""Update arguments dict from user input
- """
+ ""
for name, argument in arguments.items():
try:
argument.update_parser(parser, name)
except ArgumentError:
pass
+"""
\ No newline at end of file
cmd_parser.syntax = '%s %s' % (
subcmd.path.replace('_', ' '), cls.syntax)
cmd_parser.update_arguments(instance.arguments)
+ instance.arguments.pop('config')
+ cmd_parser = ArgumentParseManager(cmd_parser.syntax,
+ instance.arguments)
if '-h' in cmd_args or '--help' in cmd_args:
cmd_parser.parser.print_help()
return