diff options
Diffstat (limited to 'lib/bundler/vendor/thor/parser/options.rb')
-rw-r--r-- | lib/bundler/vendor/thor/parser/options.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/vendor/thor/parser/options.rb b/lib/bundler/vendor/thor/parser/options.rb index 8da20f6b..bd0b892d 100644 --- a/lib/bundler/vendor/thor/parser/options.rb +++ b/lib/bundler/vendor/thor/parser/options.rb @@ -151,6 +151,8 @@ class Thor elsif option.string? && !option.required? # Return the default if there is one, else the human name return option.lazy_default || option.default || option.human_name + elsif option.lazy_default + return option.lazy_default else raise MalformattedArgumentError, "No value provided for option '#{switch}'" end |