Bug 847968 - Get "Invalid arguments" while running "rhc domain -dp <password>"
Summary: Get "Invalid arguments" while running "rhc domain -dp <password>"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-14 08:49 UTC by jizhao
Modified: 2015-05-15 02:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 18:04:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description jizhao 2012-08-14 08:49:30 UTC
Description of problem:
"rhc domain" always shows "Invalid arguments" while running "rhc domain -dp <password>". All "rhc domain" commands have the same issue.

Version-Release number of selected component (if applicable):
rhc-0.97.6-1.el6_3.noarch

How reproducible:
Always

Steps to Reproduce:
1.$ rhc domain show -dp <password> --trace
2.
3.
  
Actual results:
/usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:106:in `validate_command': Invalid arguments (ArgumentError)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:152:in `to_commander'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:155:in `run'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/runner.rb:402:in `run_active_command'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:65:in `run!'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/delegates.rb:7:in `run!'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/cli.rb:37:in `start'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/bin/rhc:62
	from /usr/bin/rhc:19:in `load'
	from /usr/bin/rhc:19


Expected results:
The domain info should be shown successfully.

Additional info:

Comment 1 jizhao 2012-08-14 09:10:14 UTC
Besides, there's no --force|-f option. Is it still unfinished?

Comment 2 Xiaoli Tian 2012-08-14 09:29:31 UTC
(In reply to comment #1)
> Besides, there's no --force|-f option. Is it still unfinished?

This is tracked in this bug 847719.

Comment 3 John (J5) Palmieri 2012-08-16 18:04:10 UTC
There is no -dp option. I'm not sure if commander supports concatenating options together. 

You should use the command

rhc domain show -d -p password


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