Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'thor'
- class Test < Thor
- class_options %w(password -p) => :required
- def initialize(*)
- super
- puts options.inspect
- end
- desc "show", "test"
- method_options :ha => :string
- def show
- puts "test"
- end
- end
- Test.start
Add Comment
Please, Sign In to add comment