diff options
Diffstat (limited to 'doc/optparse/ruby/shellwords.rb')
-rw-r--r-- | doc/optparse/ruby/shellwords.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/optparse/ruby/shellwords.rb b/doc/optparse/ruby/shellwords.rb new file mode 100644 index 0000000000..d181d4a4f6 --- /dev/null +++ b/doc/optparse/ruby/shellwords.rb @@ -0,0 +1,6 @@ +require 'optparse/shellwords' +parser = OptionParser.new +parser.on('--shellwords=SHELLWORDS', Shellwords) do |value| + p [value, value.class] +end +parser.parse! |