From 6c66d376559b9265e98788887fbf0f7f5ea3ea6b Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Fri, 13 May 2011 14:36:19 +0200 Subject: Assume ipa help for plugins. ticket 914 --- ipalib/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 57082cc5..99f236bb 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] -- cgit