Bug 801301

Summary: 'rhc domain' command should get the help page when executing it directly
Product: OKD Reporter: Meng Bo <bmeng>
Component: ocAssignee: John (J5) Palmieri <johnp>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: high    
Version: 1.xCC: jkeck, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-06 06:44:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meng Bo 2012-03-08 08:49:22 UTC
Description of problem:
when executing 'rhc domain' command, it should get the command help page like other commands.

Version-Release number of selected component (if applicable):
rhc-0.88.1-1.el6_2.noarch

How reproducible:
always

Steps to Reproduce:
1.install latest rhc client
2.run 'rhc domain' command
3.
  
Actual results:
'rhc domain' command get the domain information just like 'rhc domain show'

Expected results:
when executing the command 'rhc domain' without other args, it should print the help page for the command.

Additional info:
[mengbo@localhost ~]$ rhc domain
Password: 

User Info
=========
Namespace: bmeng1dev6
  RHLogin: bmeng+1


Application Info
================
No applications found.  You can use 'rhc app create' to create new applications.




[mengbo@localhost ~]$ rhc sshkey
Missing or invalid command!

Usage: rhc sshkey (<command> | --help) [<args>]
Manage multiple keys for the registered rhcloud user.

List of commands
  list                           Display all the SSH keys for the user account
  add                            Add SSH key to the user account
  update                         Update SSH key for the user account
  remove                         Remove SSH key from the user account

List of arguments
  -l|--rhlogin      rhlogin      Red Hat login (RHN or OpenShift login with OpenShift Express access) (Default: bmeng+1)
  -p|--password     password     RHLogin password (optional, will prompt)
  -i|--identifier   key-name     User-specified identifier for the key
  -k|--ssh          key-filepath SSH public key filepath 
  -d|--debug                     Print Debug info
  -h|--help                      Show Usage info
  --config          path         Path of alternate config file
  --timeout         #            Timeout, in seconds, for connection

Comment 1 John (J5) Palmieri 2012-04-05 21:55:37 UTC
# if the user just enters "rhc domain", don't throw an error
# let it be handled by the "rhc domain show" command

This seems to be intentional.  Any good reason to fix this now?

Comment 2 Meng Bo 2012-04-06 06:44:26 UTC
close this bug since this is by design.