Bug 852252

Summary: Dose not strict recognize invalid option if adding invalid option after a valid option
Product: OKD Reporter: Wei Sun <wsun>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: johnp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-09 16:24:48 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 Wei Sun 2012-08-28 02:39:13 UTC
Description of problem:
I use "rhc domain show -dj" or "rhc -vj",can work.But use "rhc domain show -h",don't find "j" option in the list.

Version-Release number of selected component (if applicable):
rhc-0.98.3

How reproducible:
always

Steps to Reproduce:
1.rhc domain show -dj
2.rhc -vj
3.
  
Actual results:
[sunwei@dhcp-8-229 ~]$ rhc domain show -dj
Password: ******

D, [2012-08-28T10:25:08.203822 #31430] DEBUG -- : Connecting to https://ec2-184-72-186-180.compute-1.amazonaws.com/broker/rest/api
D, [2012-08-28T10:25:10.539176 #31430] DEBUG -- : Getting all domains

User Info
=========
Namespace: No namespaces found. You can use 'rhc domain create <namespace>' to create a namespace for your applications.

Login: wsundev



[sunwei@dhcp-8-229 ~]$ rhc -vj
rhc 0.98.3


Expected results:
Should return the information like "The command 'rhc ' is not recognized."

Additional info:
if only input invalid option,eg, rhc -j,can get that error information:"The command 'rhc ' is not recognized."

[sunwei@dhcp-8-229 ~]$ rhc -j
The command 'rhc ' is not recognized.


But if add valid option before invalid option,don't recognize that invalid option.

Comment 1 John (J5) Palmieri 2012-10-09 16:24:48 UTC
This is just a base reality of how OptionParser works in ruby.