aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor/thor/parser/arguments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/vendor/thor/parser/arguments.rb')
-rw-r--r--[-rwxr-xr-x]lib/bundler/vendor/thor/parser/arguments.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/vendor/thor/parser/arguments.rb b/lib/bundler/vendor/thor/parser/arguments.rb
index 07850836..888ef692 100755..100644
--- a/lib/bundler/vendor/thor/parser/arguments.rb
+++ b/lib/bundler/vendor/thor/parser/arguments.rb
@@ -28,7 +28,7 @@ class Thor
@switches = arguments
arguments.each do |argument|
- if argument.default
+ if argument.default != nil
@assigns[argument.human_name] = argument.default
elsif argument.required?
@non_assigned_required << argument
@@ -94,7 +94,7 @@ class Thor
hash = {}
while current_is_value? && peek.include?(?:)
- key, value = shift.split(':')
+ key, value = shift.split(':',2)
hash[key] = value
end
hash