mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
[ruby/optparse] Reorganize Ruby example files for sharing (#14)
9a2352c1c9
This commit is contained in:
parent
97abd0f6af
commit
c795f30ef0
45 changed files with 43 additions and 55 deletions
|
@ -1,9 +0,0 @@
|
|||
require 'optparse'
|
||||
parser = OptionParser.new
|
||||
parser.on('-x [XXX]', '--xxx') do |value|
|
||||
p ['--xxx', value]
|
||||
end
|
||||
parser.on('-y', '--yyy [YYY]') do |value|
|
||||
p ['--yyy', value]
|
||||
end
|
||||
parser.parse!
|
Loading…
Add table
Add a link
Reference in a new issue