8000 Document requires needed for Date/DateTime/Time/URI/Shellwords support · ruby/optparse@fb91d97 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb91d97

Browse files
jeremyevanshsbt
authored andcommitted
Document requires needed for Date/DateTime/Time/URI/Shellwords support
Fixes [Bug #19566]
1 parent 5bf4fa8 commit fb91d97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/optparse.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@
152152
# OptionParser supports the ability to coerce command line arguments
153153
# into objects for us.
154154
#
155-
# OptionParser comes with a few ready-to-use kinds of type
155+
# OptionParser comes with a few ready-to-use kinds of type
156156
# coercion. They are:
157157
#
158-
# - Date -- Anything accepted by +Date.parse+
159-
# - DateTime -- Anything accepted by +DateTime.parse+
160-
# - Time -- Anything accepted by +Time.httpdate+ or +Time.parse+
161-
# - URI -- Anything accepted by +URI.parse+
162-
# - Shellwords -- Anything accepted by +Shellwords.shellwords+
158+
# - Date -- Anything accepted by +Date.parse+ (need to require +optparse/date+)
159+
# - DateTime -- Anything accepted by +DateTime.parse+ (need to require +optparse/date+)
160+
# - Time -- Anything accepted by +Time.httpdate+ or +Time.parse+ (need to require +optparse/time+)
161+
# - URI -- Anything accepted by +URI.parse+ (need to require +optparse/uri+)
162+
# - Shellwords -- Anything accepted by +Shellwords.shellwords+ (need to require +optparse/shellwords+)
163163
# - String -- Any non-empty string
164164
# - Integer -- Any integer. Will convert octal. (e.g. 124, -3, 040)
165165
# - Float -- Any float. (e.g. 10, 3.14, -100E+13)

0 commit comments

Comments
 (0)
0