Bug 740574

Summary: Using -g option in starting agent to purgeplugins fails
Product: [Other] RHQ Project Reporter: Nabeel Saad <nsaad>
Component: AgentAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0.0 Beta1CC: hrupp
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: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nabeel Saad 2011-09-22 14:17:59 UTC
Description of problem:
Attempting to start the JON Agent with the -g option throws an invalid option -- g
error (<- which in itself is probably an issue given that it should be '-g').  However, using it's alternate "--purgeplugins" works.  This is probably just a bad condition on a case statement or if statement somewhere in the org.rhq.enterprise.agent.AgentMain code.

Version-Release number of selected component (if applicable):
3.0.0-BETA1

How reproducible:
Everytime

Steps to Reproduce:
1.Unpack a jon agent
2.Setup and start a jon agent once, then shutdown
3.Restart the jon agent with ./rhq-agent.sh -g
  
Actual results:
Shows the help display with an error at the top that "--g" is an invalid option

Expected results:
To start the agent and purge the plugins

Additional info: