-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously if a user called pki-server CLI with a wrong sub-command the ArgumentParser would show an auto-generated error message which looks significantly different from the help message already defined in print_help(). To fix the issue the PKIServerCLI.create_parser() and execute() have been modified to use remainder instead of subparsers, and the create_parser() in the sub-commands has been modified to create a regular ArgumentParser instead of a subparser. Similar changes were made to the CLI base class to fix the help messages for sub-commands (e.g. pki-server ca). The pki-server has also been modified to provide a --version option to show the version number of the tool. A new CLIException has been added to distinguish a normal CLI error (which will generate a simple error message such as "Invalid module") from an unexpected exception which will generate a full stack trace. Resolves: #4932
- Loading branch information
Showing
33 changed files
with
310 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.