Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 998363 - Add --help option to GetoptLong list
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Aug 20, 2013
1 parent 6b46828 commit 0d53d24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/misc/bin/oo-app-state-show
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ require 'openshift-origin-node'
require 'openshift-origin-node/utils/shell_exec'
opts = GetoptLong.new(
["--with-app-uuid", "-a", GetoptLong::REQUIRED_ARGUMENT],
["--with-container-uuid", "-c", GetoptLong::REQUIRED_ARGUMENT]
["--with-container-uuid", "-c", GetoptLong::REQUIRED_ARGUMENT],
["--help", '-h', GetoptLong::NO_ARGUMENT]
)

args = {}
Expand All @@ -68,7 +69,7 @@ begin
print container.state.value
rescue Exception => e
$stderr.puts(e.message)
exit -1
exit(-1)
else
exit 0
end

0 comments on commit 0d53d24

Please sign in to comment.