Class: Inch::CLI::Command::Options::Stats
- Defined in:
- lib/inch/cli/command/options/stats.rb
Constant Summary collapse
- FORMATS =
%w(text json yaml)
Instance Attribute Summary
Attributes inherited from BaseList
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from BaseList
Methods inherited from Base
#description, #initialize, #name, register_command_as, run, #run, #usage
Methods included from TraceHelper
Constructor Details
This class inherits a constructor from Inch::CLI::Command::Base
Instance Method Details
#list_options(opts) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/inch/cli/command/options/stats.rb', line 10 def (opts) super opts.on("-f", "--format [FORMAT]", FORMATS, "Set output FORMAT") do |format| @format = format end end |