Method: Filigree::Configuration::ClassMethods#bool_option

Defined in:
lib/filigree/configuration.rb

#bool_option(long, short = nil) ⇒ void

This method returns an undefined value.

Define a boolean option. The variable will be set to true if the flag is seen and be false otherwise.

Parameters:

  • long (String)

    Long name of the option

  • short (String) (defaults to: nil)

    Short name of the option



239
240
241
242
# File 'lib/filigree/configuration.rb', line 239

def bool_option(long, short = nil)
	@next_default = false
	option(long, short) { true }
end