Bug 908821 - CLI client does not check passed options correctly
CLI client does not check passed options correctly
Status: NEW
Product: RHQ Project
Classification: Other
Component: CLI (Show other bugs)
4.5
Unspecified Unspecified
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-07 10:33 EST by Filip Brychta
Modified: 2013-02-07 10:33 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Filip Brychta 2013-02-07 10:33:20 EST
Description of problem:
I accidentally run 
./rhq-cli.sh -s 10.16.23.170 -r rhqadmin -p rhqadmin
instead of 
./rhq-cli.sh -s 10.16.23.170 -u rhqadmin -p rhqadmin 
and no error message was displayed.
When you run 
./rhq-cli.sh -s 10.16.23.170 -z rhqadmin -p rhqadmin
error message is displayed correclty.

Version-Release number of selected component (if applicable):
Version: 4.6.0-SNAPSHOT
Build Number: 73a33d5

How reproducible:
Always

Steps to Reproduce:
1. run ./rhq-cli.sh -s 10.16.23.170 -r rhqadmin -p rhqadmin

  
Actual results:
no error

Expected results:
Cli: invalid option -- r
rhq-cli.sh [-h] [-u user] [-p pass] [-P] [-s host] [-t port] [-v] [-f file]|[-c command]
Exception in thread "main" java.lang.IllegalArgumentException: Bad arguments specified on command line
	at org.rhq.enterprise.client.ClientMain$StartupConfiguration.process(ClientMain.java:124)
	at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:177)

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