module Stefon::Options

This module holds custom behavior for dealing with the gem trollop

Public Class Methods

get() click to toggle source

rubocop:disable MethodLength

# 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