mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Mention ipa COMMAND --help
as the preferred way to get command help
This avoids the problem with ambiguous command/topic names. No functionality is changed; `ipa help <COMMAND>` still works as before if there's no topic with the same name. https://fedorahosted.org/freeipa/ticket/3247
This commit is contained in:
parent
de1c4eeae2
commit
f16c100f1e
@ -664,7 +664,10 @@ class help(frontend.Local):
|
||||
Display help for a command or topic.
|
||||
"""
|
||||
|
||||
takes_args = (Str('command?'),)
|
||||
takes_args = (
|
||||
Str('command?', cli_name='topic', label=_('Topic or Command'),
|
||||
doc=_('The topic or command name.')),
|
||||
)
|
||||
takes_options = (
|
||||
Any('outfile?', flags=['no_option']),
|
||||
)
|
||||
|
@ -531,7 +531,7 @@ class API(DictProxy):
|
||||
'See "ipa help <TOPIC>" for more information on a '
|
||||
'specific topic.',
|
||||
'See "ipa help commands" for the full list of commands.',
|
||||
'See "ipa help <COMMAND>" for more information on a '
|
||||
'See "ipa <COMMAND> --help" for more information on a '
|
||||
'specific command.',
|
||||
]))
|
||||
parser.disable_interspersed_args()
|
||||
|
Loading…
Reference in New Issue
Block a user