Sha256: e65369effaea29d1fabe16a2bbd6f614ecb901c849c3e8d618b2aaee4d651612

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

module Pair
  class Cli
    class Config < self
      def run!
        parse!

        Pair.config(options)
      end

      def parse!
        opts = parse do |opts|
          opts.banner = "Usage: #{$0.split("/").last} config" +
                        "\n\n" +
                        "Options:" +
                        "\n"

          opts.on("-t", "--api-token KEY") do |key|
            options[:api_token] = key
          end

          opts.on("-g", "--growl") do
            options[:growl] = true
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pair-0.0.4 lib/pair/cli/config.rb