1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
- 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:
Burdette Lamar 2021-04-22 07:27:06 -05:00 committed by Hiroshi SHIBATA
parent a10db32003
commit 27679b349e
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
3 changed files with 81 additions and 13 deletions

View file

@ -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!