[RFE] rhc app create <app name> <cartridge> -s -enable-ha # should throw error The proper work flow is $ rhc app-create example ruby-1.9 -s $ rhc enable-ha example This works in creating and app but not enabling ha: $rhc app create <app name> <cartridge> -s -enable-ha It can throw a user off when they are trying to enable-ha, this is a request to get the following to throw and error. rhc app create <app name> <cartridge> -s -enable-ha
It looks like this fails not because rhc explicitly allows the enable-ha option with app-create, but because the '-e' option is valid. For example, If you pass in the option '-lololol', rhc will try to use the login 'ololol' as it treats this option the same as '--login ololol' or '-l ololol'. You can pass in anything as an option, as long as it starts with a valid option letter, and it won't complain: # rhc app-create breaktest ruby-1.9 -e12345 Application Options ------------------- Domain: admin Cartridges: ruby-1.9 Gear Size: default Scaling: no Creating application 'breaktest' ... done The real problem appears to be that there is no failure when the '-e' option is not able to parse the provided environment variable(s).
Closing duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1232921 *** This bug has been marked as a duplicate of bug 1232921 ***