summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLee Jarvis <leejarvis@fastmail.com>2017-11-17 23:20:41 +0000
committerGitHub <noreply@github.com>2017-11-17 23:20:41 +0000
commitd021364d5a2dc3a6b22953be215f332b3fde23b7 (patch)
treedf6800124b3f446afeec07a5198d40607709ff35 /lib
parent641c537eca68286620c13256f2d85aeb1d116ed4 (diff)
parent68dcd76d58584c192f202409365350d0b356e391 (diff)
downloadslop-d021364d5a2dc3a6b22953be215f332b3fde23b7.tar.gz
Merge pull request #223 from marcandre/separator
Fix separator so it doesn't mutate user data
Diffstat (limited to 'lib')
-rw-r--r--lib/slop/options.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop/options.rb b/lib/slop/options.rb
index 94fc5dd..41913e0 100644
--- a/lib/slop/options.rb
+++ b/lib/slop/options.rb
@@ -61,7 +61,7 @@ module Slop
# the help text.
def separator(string)
if separators[options.size]
- separators.last << "\n#{string}"
+ separators[-1] += "\n#{string}"
else
separators[options.size] = string
end