Bug 999883 - Help message shows "$0" instead of command name for command "oo-admin-ctl-tc"
Summary: Help message shows "$0" instead of command name for command "oo-admin-ctl-tc"
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-22 10:19 UTC by Qiushui Zhang
Modified: 2015-05-14 23:27 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Qiushui Zhang 2013-08-22 10:19:19 UTC
Description of problem:
In the help message of "oo-admin-ctl-tc -h", it says "Usage: $0 {start|stop|restart|status [username]|startuser <username>|stopuser <username>|restartuser <username>|throttleuser <username>|nothrottleuser <username>|deluser <username>}".  It should be "/usr/sbin/oo-admin-ctl-tc" instead of "$0".

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

How reproducible:
always

Steps to Reproduce:
1. On instance, execute "/usr/sbin/oo-admin-ctl-tc -h"
2.
3.

Actual results:
It shows:
Usage: $0 {start|stop|restart|status [username]|startuser <username>|stopuser <username>|restartuser <username>|throttleuser <username>|nothrottleuser <username>|deluser <username>}

Expected results:
Usage: /usr/sbin/oo-admin-ctl-tc {start|stop|restart|status [username]|startuser <username>|stopuser <username>|restartuser <username>|throttleuser <username>|nothrottleuser <username>|deluser <username>}

Additional info:

Comment 1 openshift-github-bot 2013-08-23 14:28:59 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/65e06f7044cc1e07fc2fd4db04520b8d695cca73
Bug 999883 - Print command name in usage instead of '$0'

Comment 2 Qiushui Zhang 2013-08-26 02:37:50 UTC
Tested on devenv_3706.

[root@ip-10-179-40-138 ~]# oo-admin-ctl-tc -h
Usage: /usr/sbin/oo-admin-ctl-tc {start|stop|restart|status [username]|startuser <username>|stopuser <username>|restartuser <username>|throttleuser <username>|nothrottleuser <username>|deluser <username>}
[root@ip-10-179-40-138 ~]# oo-admin-ctl-tc --help
Usage: /usr/sbin/oo-admin-ctl-tc {start|stop|restart|status [username]|startuser <username>|stopuser <username>|restartuser <username>|throttleuser <username>|nothrottleuser <username>|deluser <username>}

So mark it as verified.


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