Bug 861543 - [US2814][US2816][fork] '-l' and '-p' and '-d' and '--config' and '-t' global options can not work.
Summary: [US2814][US2816][fork] '-l' and '-p' and '-d' and '--config' and '-t' global ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-29 06:03 UTC by Wei Sun
Modified: 2015-05-15 02:06 UTC (History)
3 users (show)

Fixed In Version: fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_194
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:48:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wei Sun 2012-09-29 06:03:40 UTC
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

Comment 1 John (J5) Palmieri 2012-10-01 16:40:40 UTC
Looks like this works in my command-merge-master branch.  I have just merged chris' alias branch.

Comment 2 Chandrika Gole 2012-10-02 23:24:43 UTC
verified on AMI: fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_202 (ami-7b40fd12)

Comment 3 Chandrika Gole 2012-10-02 23:27:57 UTC
[root@ip-10-145-185-183 ~]# rhc alias add  jb  jbalias1   -l cgole 
Password: 


RESULT:
Application event 'add-alias' successful


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