diff options
author | Jan Cholasta <jcholast@redhat.com> | 2011-05-13 14:36:19 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-05-13 13:25:34 -0400 |
commit | 6c66d376559b9265e98788887fbf0f7f5ea3ea6b (patch) | |
tree | 149e476b720210c5e9defbded67fbe5c86552d15 | |
parent | 756d61724e28663f9e8a4d30c01c169f66c739c0 (diff) | |
download | freeipa-6c66d376559b9265e98788887fbf0f7f5ea3ea6b.tar.gz freeipa-6c66d376559b9265e98788887fbf0f7f5ea3ea6b.tar.xz freeipa-6c66d376559b9265e98788887fbf0f7f5ea3ea6b.zip |
Assume ipa help for plugins.
ticket 914
-rw-r--r-- | ipalib/cli.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 57082cc53..99f236bb4 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -898,6 +898,12 @@ class cli(backend.Executioner): return (key, argv) = (argv[0], argv[1:]) name = from_cli(key) + if name not in self.Command and len(argv) == 0: + try: + self.Command.help(unicode(key)) + return + except HelpError: + pass if name not in self.Command or self.Command[name].NO_CLI: raise CommandError(name=key) cmd = self.Command[name] |