lib/cl/cmd.rb in cl-0.0.3 vs lib/cl/cmd.rb in cl-0.0.4
- old
+ new
@@ -18,14 +18,12 @@
def arg(name, opts = {})
args.define(self, name, opts)
end
- def cmd(summary = nil)
- @summary = summary
+ def purpose(purpose = nil)
+ purpose ? @purpose = purpose : @purpose
end
-
- attr_reader :summary
def opt(*args, &block)
opts << [args, block]
end