diff options
Diffstat (limited to 'lib/slop/parser.rb')
-rw-r--r-- | lib/slop/parser.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/slop/parser.rb b/lib/slop/parser.rb index 7d8ad46..3cba82b 100644 --- a/lib/slop/parser.rb +++ b/lib/slop/parser.rb @@ -148,6 +148,7 @@ module Slop def partition(strings) if strings.include?("--") partition_idx = strings.index("--") + return [[], strings[1..-1]] if partition_idx.zero? [strings[0..partition_idx-1], strings[partition_idx+1..-1]] else [strings, []] |