Module: CommandKit::Options::Quiet
- Extended by:
- ModuleMethods
- Includes:
- CommandKit::Options
- Defined in:
- lib/command_kit/options/quiet.rb
Overview
Defines a -q
,--quiet
option.
Examples
include CommandKit::Options::Quiet
def run(*argv)
# ...
puts "verbose output" unless quiet?
# ...
end
Defined Under Namespace
Modules: ModuleMethods
Constant Summary
Constants included from Printing
Instance Attribute Summary
Attributes included from CommandKit::Options
Attributes included from Parser
Attributes included from CommandName
Instance Method Summary collapse
-
#quiet? ⇒ Boolean
Determines if quiet mode is enabled.
Methods included from ModuleMethods
Methods included from CommandKit::Options
Methods included from ModuleMethods
Methods included from Parser
#help, #help_options, #initialize, #main, #on_ambiguous_argument, #on_ambiguous_option, #on_invalid_argument, #on_invalid_option, #on_missing_argument, #on_needless_argument, #on_parse_error, #parse_options
Methods included from Parser::ModuleMethods
Methods included from Printing
#print_error, #print_exception
Methods included from Stdio
#abort, #gets, #initialize, #print, #printf, #putc, #puts, #readline, #readlines, #stderr, #stdin, #stdout
Methods included from Main
Methods included from Main::ModuleMethods
Methods included from Usage
Methods included from Usage::ModuleMethods
Methods included from Help
Methods included from Help::ModuleMethods
Methods included from CommandName
Methods included from CommandName::ModuleMethods
Methods included from Arguments
Methods included from Arguments::ModuleMethods
Instance Method Details
#quiet? ⇒ Boolean
Determines if quiet mode is enabled.
53 54 55 |
# File 'lib/command_kit/options/quiet.rb', line 53 def quiet? @quiet end |