Commit 6df4aa6e authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Bugfix shell with custom config file

parent 54d800e8
......@@ -451,15 +451,3 @@ class ArgumentParseManager(object):
for term in unparsed:
self._unparsed += split_input(' \'%s\' ' % term)
self._parser_modified = False
"""
def update_arguments(parser, arguments):
""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
......@@ -167,8 +167,9 @@ class Shell(Cmd):
instance = cls(dict(cmd_parser.arguments))
cmd_parser.update_arguments(instance.arguments)
instance.arguments.pop('config')
cmd_parser = ArgumentParseManager(subcmd.path,
instance.arguments)
#cmd_parser = ArgumentParseManager(subcmd.path,
# instance.arguments)
cmd_parser.arguments = instance.arguments
cmd_parser.syntax = '%s %s' % (
subcmd.path.replace('_', ' '), cls.syntax)
if '-h' in cmd_args or '--help' in cmd_args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment