Sha256: 8c7d43e3d7a6775f7ce661220c0d844b6b79560a157bd69474ba1088431ec606

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module Inch
  module CLI
    module Command
      module Options
        class Stats < BaseList
          FORMATS = %w(text json yaml)

          attribute :format, FORMATS.first

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 lib/inch/cli/command/options/stats.rb
inch-0.5.0.rc4 lib/inch/cli/command/options/stats.rb
inch-0.4.10 lib/inch/cli/command/options/stats.rb
inch-0.4.9 lib/inch/cli/command/options/stats.rb
inch-0.4.8 lib/inch/cli/command/options/stats.rb
inch-0.4.7 lib/inch/cli/command/options/stats.rb