Commit ee4c47d7 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Cleanup deprecated method in argument

parent 7c2247a0
......@@ -36,7 +36,7 @@ from sys import argv, exit, stdout
from os.path import basename
from inspect import getargspec
from kamaki.cli.argument import _arguments, parse_known_args, update_arguments
from kamaki.cli.argument import ArgumentParseManager
from kamaki.cli.history import History
from kamaki.cli.utils import print_dict, print_list, red, magenta, yellow
from kamaki.cli.errors import CLIError
......@@ -408,9 +408,6 @@ def run_shell(exe_string, arguments):
shell.run(arguments)
from kamaki.cli.argument import ArgumentParseManager
def main():
try:
exe = basename(argv[0])
......
......@@ -448,17 +448,6 @@ class ArgumentParseManager(object):
self._parser_modified = False
def parse_known_args(parser, arguments=None):
"""Fill in arguments from user input"""
parsed, unparsed = parser.parse_known_args()
for name, arg in arguments.items():
arg.value = getattr(parsed, name, arg.default)
newparsed = []
for term in unparsed:
newparsed += split_input(' \'%s\' ' % term)
return parsed, newparsed
def update_arguments(parser, arguments):
"""Update arguments dict from user input
......
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