summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-12 14:41:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-12 14:41:24 +0000
commit5c0e6cc886abb26ab02c40de5ad217595f6e9b82 ()
tree279f8cacf0bdc6c018fc9627506365f0d8ef941c
parent707c5ffab5e2ae5105c7d9823411332b160f33df (diff)
optparse.rb: [DOC] about into: option
* lib/optparse.rb: add documentation for "into" option of #parse and family, which stores options to a Hash. [ruby-core:87004] [Misc #14753] From: pocke (Masataka Kuwabara) <[email protected]> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/optparse.rb23
1 files changed, 23 insertions, 0 deletions
@@ -232,6 +232,29 @@
# #<struct User id=2, name="Gandalf">
# bash-3.2$ ruby optparse-test.rb --user 3
# optparse-test.rb:15:in `block in find_user': No User Found for id 3 (RuntimeError)
# === Complete example
#
# The following example is a complete Ruby program. You can run it and see the