mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Assume ipa help for plugins.
ticket 914
This commit is contained in:
parent
756d61724e
commit
6c66d37655
@ -898,6 +898,12 @@ class cli(backend.Executioner):
|
|||||||
return
|
return
|
||||||
(key, argv) = (argv[0], argv[1:])
|
(key, argv) = (argv[0], argv[1:])
|
||||||
name = from_cli(key)
|
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:
|
if name not in self.Command or self.Command[name].NO_CLI:
|
||||||
raise CommandError(name=key)
|
raise CommandError(name=key)
|
||||||
cmd = self.Command[name]
|
cmd = self.Command[name]
|
||||||
|
Loading…
Reference in New Issue
Block a user