Sha256: 43e502a3600026db9a665a96e562988bd3a8a33f9162ffcc0dd734f5442b4893

Contents?: true

Size: 453 Bytes

Versions: 14

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacCli
  module Runner
    class BaseOption
      attr_reader :short, :long, :description, :options

      def initialize(short, long, description, options = {})
        @short = short
        @long = long
        @description = description
        @options = options.with_indifferent_access
      end

      def show_on_usage?
        options[:usage]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
eac_cli-0.4.0 lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.13.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.12.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.11.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.10.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.9.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.7.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.6.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.5.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.3.1 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
eac_cli-0.3.0 lib/eac_cli/runner/base_option.rb
ehbrs-tools-0.3.0 vendor/eac_cli/lib/eac_cli/runner/base_option.rb
eac_cli-0.2.0 lib/eac_cli/runner/base_option.rb
eac_cli-0.1.0 lib/eac_cli/runner/base_option.rb