| Summary: | Help message shows "$0" instead of command name for command "oo-admin-ctl-tc" | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Qiushui Zhang <qiuzhang> |
| Component: | Containers | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.x | CC: | mfojtik, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-29 12:54:42 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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' 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.
|
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: