diff options
Diffstat (limited to 'lib/bundler/vendor/thor/parser/option.rb')
-rw-r--r-- | lib/bundler/vendor/thor/parser/option.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/vendor/thor/parser/option.rb b/lib/bundler/vendor/thor/parser/option.rb index c8f20b13..26da9d6b 100644 --- a/lib/bundler/vendor/thor/parser/option.rb +++ b/lib/bundler/vendor/thor/parser/option.rb @@ -1,14 +1,15 @@ class Thor class Option < Argument #:nodoc: - attr_reader :aliases, :group, :lazy_default + attr_reader :aliases, :group, :lazy_default, :hide VALID_TYPES = [:boolean, :numeric, :hash, :array, :string] - def initialize(name, description=nil, required=nil, type=nil, default=nil, banner=nil, lazy_default=nil, group=nil, aliases=nil) + def initialize(name, description=nil, required=nil, type=nil, default=nil, banner=nil, lazy_default=nil, group=nil, aliases=nil, hide=nil) super(name, description, required, type, default, banner) @lazy_default = lazy_default @group = group.to_s.capitalize if group @aliases = [*aliases].compact + @hide = hide end # This parse quick options given as method_options. It makes several |