#908 --help option to certain pki cert commands results "Error: Unrecognized option: --help"
Closed: Duplicate None Opened 10 years ago by mrniranjan.

Certain commands of pki cert doesn't have --help option , Below is the list of commands for which --help results in unrecognized option

[root@dhcp207-49 cert]# pki cert-show --help
Error: Unrecognized option: --help
usage: cert-show <Serial Number> [OPTIONS...]
    --encoded         Base-64 encoded
    --output <file>   Output file
    --pretty          Pretty print
[root@dhcp207-49 cert]# pki ca-cert-revoke --help
Error: Unrecognized option: --help
usage: ca-cert-revoke <Serial Number> [OPTIONS...]
    --ca                    CA signing certificate
    --comments <comments>   Comments
    --force                 Force
    --reason <reason>       Revocation reason: Unspecified (default),
                            Key_Compromise, CA_Compromise,
                            Affiliation_Changed, Superseded,
                            Cessation_of_Operation, Certificate_Hold,
                            Remove_from_CRL, Privilege_Withdrawn,
                            AA_Compromise
[root@dhcp207-49 cert]# pki ca-cert-hold --help
Error: Unrecognized option: --help
usage: ca-cert-hold <Serial Number> [OPTIONS...]
    --comments <comments>   Comments
    --force                 Force
[root@dhcp207-49 cert]# pki ca-cert-release-hold --help
Error: Unrecognized option: --help
usage: ca-cert-release-hold <Serial Number> [OPTIONS...]
    --force   Force
[root@dhcp207-49 cert]# pki ca-cert-request-show --help
Error: Unrecognized option: --help
usage: ca-cert-request-show <Request ID>
[root@dhcp207-49 cert]# pki ca-cert-request-submit --help
Error: Unrecognized option: --help
usage: ca-cert-request-submit <filename>
[root@dhcp207-49 cert]# pki ca-cert-request-review --help
Error: Unrecognized option: --help
usage: ca-cert-request-review <Request ID> [OPTIONS...]
    --action <action>   Action: approve, reject, cancel, update, validate,
                        assign, unassign
    --file <filename>   File to store the certificate request
[root@dhcp207-49 cert]# pki ca-cert-request-profile-find --help
Error: Unrecognized option: --help
usage: ca-cert-request-profile-find <Profile ID>
    --size <size>     Page size
    --start <start>   Page start
[root@dhcp207-49 cert]# pki ca-cert-request-profile-show --help
Error: Unrecognized option: --help
usage: ca-cert-request-profile-show <Profile ID>
    --output <filename>   Output filename

This ticket has been marked as a duplicate of PKI TRAC Ticket #843 - Incorrect CLI argument parsing

Checked into '​master':

611419fcd8a19c06ca651add93deb66bdd0c55d5 - CLI argument parsing and bad return codes
ce5a07f06f361040b14ed5b1622d816c7044a7ec - Development tool to aid verification

Metadata Update from @mrniranjan:
- Issue set to the milestone: 10.2 Backlog

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1475

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata