Class: Inch::CLI::Command::Options::Stats

Inherits:
BaseList show all
Defined in:
lib/inch/cli/command/options/stats.rb

Constant Summary collapse

FORMATS =
%w(text json yaml)

Instance Attribute Summary

Attributes inherited from Base

#source_parser

Instance Method Summary collapse

Methods inherited from BaseList

#initialize, #prepare_list

Methods inherited from Base

#description, #initialize, #name, run, #run, #usage

Methods included from TraceHelper

#debug, #trace, #trace_header

Constructor Details

This class inherits a constructor from Inch::CLI::Command::BaseList

Instance Method Details

#list_options(opts) ⇒ Object



10
11
12
13
14
15
# File 'lib/inch/cli/command/options/stats.rb', line 10

def list_options(opts)
  super
  opts.on("-f", "--format [FORMAT]", FORMATS, "Set output FORMAT") do |format|
    @format = format
  end
end