From abe26d55c8f43e3a213fe831df7f0536d0600288 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 8 Nov 2012 08:59:31 -0500 Subject: Parse command arguments before creating a context This allows users to run `ipa COMMAND --help` even without Kerberos credentials. Part of the effort for https://fedorahosted.org/freeipa/ticket/3060 --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 59abc3b15..74c43b590 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -1051,10 +1051,10 @@ class cli(backend.Executioner): if cmd is None: return name = cmd.name + kw = self.argv_to_keyword_arguments(cmd, argv[1:]) if not isinstance(cmd, frontend.Local): self.create_context() try: - kw = self.argv_to_keyword_arguments(cmd, argv[1:]) result = self.execute(name, **kw) if callable(cmd.output_for_cli): for param in cmd.params(): -- cgit