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.
This is just a base reality of how OptionParser works in ruby.