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 BaseList

#objects

Attributes inherited from Base

#codebase

Instance Method Summary collapse

Methods inherited from BaseList

#prepare_codebase

Methods inherited from Base

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

Methods included from TraceHelper

#ui

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 list_options(opts)
  super
  opts.on("-f", "--format [FORMAT]", FORMATS, "Set output FORMAT") do |format|
    @format = format
  end
end