mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/23)
- Removed a largish block of repeated text.
- Added sections "Top List and Base List" and "Methods for Defining Options" (on, define, etc.).
- Linked from class OptionParser doc to the tutorial.
7f3195b9db
This commit is contained in:
parent
a10db32003
commit
27679b349e
3 changed files with 81 additions and 13 deletions
|
@ -12,5 +12,6 @@ end
|
|||
parser.on('-z', 'Whether to Z') do |value|
|
||||
p ['z', value]
|
||||
end
|
||||
# Parse the command line.
|
||||
parser.parse!
|
||||
# Parse the command line and return pared-down ARGV.
|
||||
p parser.parse!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue