lib/relish/commands/dsl.rb in relish-0.1.0 vs lib/relish/commands/dsl.rb in relish-0.1.1
- old
+ new
@@ -10,15 +10,16 @@
def option(name, options = {})
Option.new(self).define(name, options)
Option.names << name.to_s
end
- def usage(str)
- HelpText.next_usage = str
+ def usage(text)
+ HelpText.next_usage = text
end
- def desc(str)
- HelpText.next_description = str
+ def desc(text)
+ text = text.join("\n") if text.is_a?(Array)
+ HelpText.next_description = text
end
def command(arg, &block)
case arg
when Hash
\ No newline at end of file