Module: Stefon::Options

Defined in:
lib/stefon/cli.rb

Overview

This module holds custom behavior for dealing with the gem trollop

Class Method Summary collapse

Class Method Details

.getObject

rubocop:disable MethodLength



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/stefon/cli.rb', line 17

def self.get
  proc do
    version "stefon #{Stefon::VERSION} (c) 2014 Ilya Kavalerov"
    banner <<-EOS
      Stefon is a utilty that recommends who to ask for a code review.
      He lets you know whose code you are affecting the most.

      Run Stefon before a commit, maybe as a pre-commit hook.

      Usage:
             stefon [options]
      where [options] are:
    EOS
    opt :limit,
        'Limit the number of people that stephon suggests '\
          'sending a code review to',
        default: 4,
        short: '-l'
    opt :full_report,
        'Boolean for whether or not to include '\
          "information about how you affected someone's code",
        default: false,
        short: '-f'
  end
end