Bug 1274689

Summary: Required parameter with argument should show respective error message
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Kasurde <akasurde>
Component: certmongerAssignee: Rob Crittenden <rcritten>
Status: CLOSED WONTFIX QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mkosek, nalin, pvoborni
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-31 12:55:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Abhijeet Kasurde 2015-10-23 11:35:48 UTC
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:
100%

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