Help#
__NOTOC__
Overview#
Ticket #3060; additional ticket #3247
Fix several problems with the ipa tool online help. Individual improvements are detailed below.
Use Cases#
Please see Design. Substitute user
for TOPIC
and user-add
for COMMAND
to get concrete use cases.
Design#
Output of
ipa help
shows the usage string (“ipa [global-options] COMMAND [command-options]”), a purpose string (“Manage an IPA domain”), a list of global options (with consistent descriptions: start with a capital, no dot at the end), and the following references to more info:
See "ipa help topics" for available help topics.
See "ipa help ``\ ``" for more information on a specific topic.
See "ipa help commands" for the full list of commands.
See "ipa ``\ `` --help" for more information on a specific command.
ipa --help
,ipa -h
andipa help
produce the same output.Executing
ipa
without a command (a violation of the declared usage) outputs the help (as withipa help
) to stderr, along with an error message:
`` ipa: ERROR: command not specified``
Executing
ipaTOPIC
(again a usage violation) outputs the topic help (ipa helpTOPIC
output) to stderr, along with an “unknown command” error.ipa help COMMAND
is equivalent toipa COMMAND --help
, except when there is a topic with the same name.- When a command has the same name as a topic (for example,
ping
), ipa helpping
gives the topic help, andipaping--help
gives the command help.
- When a command has the same name as a topic (for example,
The output of
ipa help help
(andipa help --help
) makes it clear thatipa help
accepts both topics and commands.Output of
ipa help commands
andipa help topics
is formatted the same way: two columns, one with the command/topic name, the other with a short purpose string. No extra unrelated information is given.Output of
ipa COMMAND --help
contains the purpose string that appears inipa help commands
.Output of
ipa help TOPIC
contains the purpose string that appears inipa help topics
.ipa COMMAND --help
andipa help
give help even without Kerberos credentials.
Implementation#
No additional requirements or changes were discovered during the implementation phase.
Feature Managment#
N/A
Major configuration options and enablement#
N/A
Replication#
N/A
Updates and Upgrades#
N/A; update will change help output
Dependencies#
N/A
External Impact#
Example outputs in the documentation might need to be updated