summaryrefslogtreecommitdiff
path: root/lib/optparse.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r--lib/optparse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 75c6b76bc6..2306606b87 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1071,7 +1071,7 @@ XXX
#
# Returns option summary list.
#
- def to_a; summarize([*banner]) end
+ def to_a; summarize("#{banner}".split(/$/)) end
#
# Checks if an argument is given twice, in which case an ArgumentError is