--help added as a proper option.
This commit is contained in:
parent
dff5e01b0c
commit
46f2c4b0cf
@ -37,6 +37,11 @@ OptionParser.parse! do |parser|
|
||||
do_not_clean = true
|
||||
}
|
||||
|
||||
parser.on("-h", "--help", "Prints this help message.") {
|
||||
puts parser
|
||||
exit 0
|
||||
}
|
||||
|
||||
parser.invalid_option do |flag|
|
||||
STDERR.puts "ERROR: #{flag} is not a valid option."
|
||||
STDERR.puts parser
|
||||
|
Reference in New Issue
Block a user