Description of problem: Run "rhc alias add -h",could get global options,but can not work well while using these options,like "rhc alias add diytest ditalias -l wsun",will prompt invalid option: -l Version-Release number of selected component (if applicable): server:fork_ami_US2597_US2599_US2813_US2817_US2872_186 (ami-19f04d70) client:building rhc package using repo git:calfonso/rhc.git How reproducible: always Steps to Reproduce: 1.create an app 2.add alias to app with these options rhc alias add diytest ditalias -l wsun Actual results: [sunwei@dhcp-8-229 dev]$ rhc alias add diytest ditalias -l wsun invalid option: -l Usage: rhc alias add <application> <alias> [--namespace namespace] Add a custom domain name for the application Options for alias add -n, --namespace namespace Namespace of your application Global Options -l, --rhlogin login OpenShift login -p, --password password OpenShift password -d, --debug Turn on debugging --noprompt Do not ask for input --config FILE Path of a different config file -h, --help Display help documentation -v, --version Display version information -t, --trace Display backtrace when an error occurs Expected results: These options can work well. Additional info: use master rhc 0.99.3 ,can work well [sunwei@dhcp-8-229 client]$ rhc app add-alias -a jbosstest --alias jbalias -l wsun Password: ****** RESULT: Success
Looks like this works in my command-merge-master branch. I have just merged chris' alias branch.
verified on AMI: fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_202 (ami-7b40fd12)
[root@ip-10-145-185-183 ~]# rhc alias add jb jbalias1 -l cgole Password: RESULT: Application event 'add-alias' successful