Bug 998363 - oo-app-state-show doesn't recognize -h/--help
Summary: oo-app-state-show doesn't recognize -h/--help
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-19 07:13 UTC by Liang Xia
Modified: 2015-05-14 23:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-29 12:52:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Liang Xia 2013-08-19 07:13:50 UTC
Description of problem:
oo-app-state-show doesn't recognize -h/--help

Version-Release number of selected component (if applicable):
devenv_3672

How reproducible:
always

Steps to Reproduce:
1.oo-app-state-show -h
2.oo-app-state-show --help
3.

Actual results:
# oo-app-state-show -h
/usr/bin/oo-app-state-show: invalid option -- h
== Synopsis
..content skipped...
# oo-app-state-show --help
/usr/bin/oo-app-state-show: unrecognized option `--help'
== Synopsis
..content skipped...

Expected results:
Help info show without errors.

Additional info:
# oo-app-state-show 
== Synopsis
/usr/bin/oo-app-state-show: Returns the application state on the gear.
  This command must be run as root.
== Usage
/usr/bin/oo-app-state-show  --with-app-uuid APP_UUID \
                   --with-container-uuid UUID
Options:
-h|--help:
   Prints this message
UUID: Unique identifier for the application

Comment 1 Michal Fojtik 2013-08-20 13:23:41 UTC
Fix here: https://github.com/openshift/origin-server/pull/3425

Comment 2 openshift-github-bot 2013-08-21 16:43:25 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/0d53d24cbc7e3b0d3da5aba7aada51e124c26059
Bug 998363 - Add --help option to GetoptLong list

Comment 3 Liang Xia 2013-08-26 02:31:08 UTC
Verified on devenv_3706, it has been fixed.

Steps and results below:
# oo-app-state-show 
== Synopsis
/usr/bin/oo-app-state-show: Returns the application state on the gear.
  This command must be run as root.
== Usage
/usr/bin/oo-app-state-show  --with-app-uuid APP_UUID \
                   --with-container-uuid UUID
Options:
-h|--help:
   Prints this message
UUID: Unique identifier for the application

# oo-app-state-show  -h
== Synopsis
/usr/bin/oo-app-state-show: Returns the application state on the gear.
  This command must be run as root.
== Usage
/usr/bin/oo-app-state-show  --with-app-uuid APP_UUID \
                   --with-container-uuid UUID
Options:
-h|--help:
   Prints this message
UUID: Unique identifier for the application

# oo-app-state-show  --help
== Synopsis
/usr/bin/oo-app-state-show: Returns the application state on the gear.
  This command must be run as root.
== Usage
/usr/bin/oo-app-state-show  --with-app-uuid APP_UUID \
                   --with-container-uuid UUID
Options:
-h|--help:
   Prints this message
UUID: Unique identifier for the application


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