forked from dogtagpki/pki
-
Notifications
You must be signed in to change notification settings - Fork 0
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 subcommand the ArgumentParser would show an auto-generated error message. The message looks significantly different from the help message already defined in print_help(), is not well-formatted, and is not easy to customize. To address the problem the PKIServerCLI.create_parser() has been modified to use remainder instead of subparsers and the create_parser() in the subcommands has been modified to create a regular ArgumentParser object. The pki-server has also been modified to provide a --version to show the version number of the tool. A new CLIException class has been added to distinguish a normal CLI error message (e.g. invalid module) from unexpected exception. Resolves: dogtagpki#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.