Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created December 8, 2009 16:17
Show Gist options
  • Select an option

  • Save jsierles/251762 to your computer and use it in GitHub Desktop.

Select an option

Save jsierles/251762 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment