Sha256: 2fc2fabc0229a7f8285d1a3755f363c4814863fa1c785eb75ab71c5d44a96edc
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
require "rubygems" require "mixlib/cli" module Recognizer class CLI include Mixlib::CLI option :config_file, :short => "-c CONFIG", :long => "--config CONFIG", :default => File.join(File.dirname(__FILE__), "..", "..", "config.json"), :description => "The config file path" option :help, :short => "-h", :long => "--help", :description => "Show this message", :on => :tail, :boolean => true, :show_options => true, :exit => 0 def read parse_options config end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
recognizer-0.0.3 | lib/recognizer/cli.rb |
recognizer-0.0.2 | lib/recognizer/cli.rb |
recognizer-0.0.1 | lib/recognizer/cli.rb |