Module: CommandKit::Options::Verbose
- Extended by:
- ModuleMethods
- Includes:
- CommandKit::Options
- Defined in:
- lib/command_kit/options/verbose.rb
Overview
Defines a -v
,--verbose
option.
Examples
include CommandKit::Options::Verbose
def run(*argv)
# ...
puts "verbose output" if verbose?
# ...
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
-
#verbose? ⇒ Boolean
Determines if verbose 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
#verbose? ⇒ Boolean
Determines if verbose mode is enabled.
57 58 59 |
# File 'lib/command_kit/options/verbose.rb', line 57 def verbose? @verbose end |