Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 50947
BY: Douglas Seifert (seifertd)
DATE: 2008-03-19 19:53
SUBJECT: Getting main to display usage

 

I have a main program that has an option defined as follows:

option('save-file', 's') do
required
argument :required
arity 1
description "Save file."
end

If I execute the program without providing the -s or --save-file option, I get the following output:

option(--save-file))

Is there any way I can have it automatically print the usage after this error message?


Thread View

Thread Author Date
Getting main to display usageDouglas Seifert2008-03-19 19:53

Post a followup to this message