From 8b8859ed7d457f88fbf479bcfe164a9fda8eb413 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 22 Feb 2013 07:25:03 -0500 Subject: cli: Do interactive prompting after a context is created Some commands require a connection for interactive prompting. Prompt after the connection is created. Option parsing is still done before connecting so that help can be printed out without a Kerberos ticket. https://fedorahosted.org/freeipa/ticket/3453 --- tests/test_cmdline/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_cmdline/test_cli.py b/tests/test_cmdline/test_cli.py index 388c54e24..75d1608ee 100644 --- a/tests/test_cmdline/test_cli.py +++ b/tests/test_cmdline/test_cli.py @@ -18,7 +18,8 @@ class TestCLIParsing(object): executioner = api.Backend.cli cmd = executioner.get_command(argv) - kw_got = executioner.argv_to_keyword_arguments(cmd, argv[1:]) + kw_got = executioner.parse(cmd, argv[1:]) + kw_got = executioner.process_keyword_arguments(cmd, kw_got) util.assert_deepequal(expected_command_name, cmd.name, 'Command name') util.assert_deepequal(kw_expected, kw_got) -- cgit