rhq-project/rhq — pull request #12 by Jiri-Kremser (2014-03-18 13:27:47+00:00)
Title: Bug 1073096 - 'rhqctl -h install' tries to install the components instead of showing a help 

This is the renewed pull request (previously named '#9') based on my feature branch this time.

what it does?

commands considered as ok:
`rhqctl install --start` `rhqctl install`
`rhqctl install --agent`
`rhqctl install --storage --storage-data-root-dir foo`
`rhqctl start` `rhqctl status`
`rhqctl start --agent` etc.

commands considered as not ok:
`rhqctl install --start foo`
`rhqctl help install`
`rhqctl install agent`
`rhqctl start foo`
`rhqctl foo status`
`rhqctl start --agent foo` etc.

It also prints the unrecognized arguments and if `--help` is provided it doesn't do the thread.sleep() for 30sec when agent was previously installed via rpm