summaryrefslogtreecommitdiff
path: root/doc/tutorial/required_argument.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-07-28 15:24:19 +0900
committerHiroshi SHIBATA <[email protected]>2021-07-28 20:13:39 +0900
commit23ef32665689e43c200fb6ad9f14934a752d47b5 (patch)
treee7ca6769119edd21064f81465b54fd47a760bd23 /doc/tutorial/required_argument.rb
parent3026ee56b15ad983ebbff625273256dddf5ac48d (diff)
Manually picking https://github.com/ruby/optparse/pull/14
Diffstat (limited to 'doc/tutorial/required_argument.rb')
-rw-r--r--doc/tutorial/required_argument.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/tutorial/required_argument.rb b/doc/tutorial/required_argument.rb
deleted file mode 100644
index 7a5a868265..0000000000
--- a/doc/tutorial/required_argument.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'optparse'
-parser = OptionParser.new
-parser.on('-x XXX', '--xxx') do |value|
- p ['--xxx', value]
-end
-parser.on('-y', '--y YYY') do |value|
- p ['--yyy', value]
-end
-parser.parse!