Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setting to prevent creation of short accessors
- Loading branch information
1 parent
0477e44
commit 52ef8ff
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "rubygems" | ||
require "micro-optparse" | ||
|
||
options = Parser.new do |p| | ||
p.option :foo, "Option 1", :default => "String", :no_short => true | ||
p.option :bar, "Option 2", :default => "String" | ||
end.process! | ||
|
||
options.each_pair do |key, value| | ||
puts ":#{key} => #{value}" | ||
end |