summaryrefslogtreecommitdiff
path: root/lib/optparse.rb
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2023-04-04 13:58:59 -0700
committergit <[email protected]>2023-04-04 23:43:58 +0000
commitbb927acd3bd3a5a5797587bc4201724235ed26b5 ()
treeb95235d09007a8004ddd9109007b3e2bb2ebca03 /lib/optparse.rb
parent1da2e7fca35dc697d85dd91d2572ab58d08cd3bc (diff)
[ruby/optparse] Document requires needed for Date/DateTime/Time/URI/Shellwords support
Fixes [Bug #19566] https://.com/ruby/optparse/commit/fb91d97c10
-rw-r--r--lib/optparse.rb12
1 files changed, 6 insertions, 6 deletions
@@ -152,14 +152,14 @@
# OptionParser supports the ability to coerce command line arguments
# into objects for us.
#
-# OptionParser comes with a few ready-to-use kinds of type
# coercion. They are:
#
-# - Date -- Anything accepted by +Date.parse+
-# - DateTime -- Anything accepted by +DateTime.parse+
-# - Time -- Anything accepted by +Time.httpdate+ or +Time.parse+
-# - URI -- Anything accepted by +URI.parse+
-# - Shellwords -- Anything accepted by +Shellwords.shellwords+
# - String -- Any non-empty string
# - Integer -- Any integer. Will convert octal. (e.g. 124, -3, 040)
# - Float -- Any float. (e.g. 10, 3.14, -100E+13)