-
-
Save banister/4643b962ba6facf8b858 to your computer and use it in GitHub Desktop.
This file contains 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
opts = Slop.parse(["-m hello"]) do |opt| | |
opt.on :m, :method, "method name" do |meth| | |
puts meth | |
end | |
end | |
# => #<Slop config_options={} | |
# #<Slop::Option short_flag="m" long_flag="method" argument=false description="method name"> | |
# > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment