Bug 1274689 - Required parameter with argument should show respective error message
Required parameter with argument should show respective error message
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: certmonger (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Rob Crittenden
Depends On:
  Show dependency treegraph
Reported: 2015-10-23 07:35 EDT by Abhijeet Kasurde
Modified: 2018-02-07 09:24 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Abhijeet Kasurde 2015-10-23 07:35:48 EDT
Description of problem:
When ipa-getcert is requested with required parameter with argument, command simply shows detail help message. Instead, it should show particular fail message related to particular parameter.

For example,

# ipa-getcert request -d /tmp/sample -n cacertreq -t ipa-getcert - client certificate enrollment tool

Usage: ipa-getcert request [options]

Required arguments:

If using an NSS database for storage: -d DIR NSS database for key and cert -n NAME nickname for NSS-based storage (only valid with -d) -t NAME optional token name for NSS-based storage (only valid with -d)
Here, '-t' is required parameter with argument, but ipa-getcert show detail help message, instead of telling user about '-t' option requirements.

How reproducible:

Actual results:
ipa-getcert shows full help message

Expected results:
ipa-getcert should show exact argument and parameter missing.

Additional Info : 
Upstream ticket - https://fedorahosted.org/certmonger/ticket/44

Note You need to log in before you can comment on or make changes to this bug.