mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
parent
cb01437c24
commit
f89486965b
53 changed files with 8 additions and 8 deletions
6
doc/optparse/ruby/matched_values.rb
Normal file
6
doc/optparse/ruby/matched_values.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
require 'optparse'
|
||||
parser = OptionParser.new
|
||||
parser.on('--xxx XXX', /foo/i, 'Matched values') do |value|
|
||||
p ['--xxx', value]
|
||||
end
|
||||
parser.parse!
|
Loading…
Add table
Add a link
Reference in a new issue