Created
December 8, 2009 16:17
-
-
Save jsierles/251762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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