diff options
author | Andre Arko <andre@arko.net> | 2011-06-11 21:24:02 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-06-11 21:24:02 -0700 |
commit | 8b1af1ae85c5e0cef8d752a530f336975163a262 (patch) | |
tree | 3f9bc815a02034ae45871726916d065a0fb39da1 /lib/bundler/vendor/thor/parser/arguments.rb | |
parent | c78d29f4fc68ab2ed09a642b146d66e7dcf5cbdc (diff) | |
download | bundler-8b1af1ae85c5e0cef8d752a530f336975163a262.tar.gz |
Update vendored thor to 7416806146f252c589cfa0f7c154393bc498090a
Diffstat (limited to 'lib/bundler/vendor/thor/parser/arguments.rb')
-rw-r--r--[-rwxr-xr-x] | lib/bundler/vendor/thor/parser/arguments.rb | 4 |
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 |