Sha256: 18c17d88c47b20485687589f6f52641c5ff91769e8b4840dbbcd626bd5340328

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

module BrowserShooter
  class ARGVParsers
    include Mixlib::CLI

    option(
      :config_file,
      :short        => "-c CONFIG",
      :long         => "--config CONFIG",
      :required     => true,
      :description  => "The configuration file to use"
    )

    option(
      :suite,
      :short        => "-s SUITE",
      :long         => "--suite SUITE",
      :description  => "The name of the suite to execute",
    )

    option(
      :test,
      :short        => "-t TEST",
      :long         => "--test TEST",
      :description  => "The name of the test to execute",
    )

    option(
      :browsers,
      :short        => "-b BROWSERS",
      :long         => "--browsers BROWSERS",
      :description  => "The name of the browsers to execute, separated by comas",
      :proc         => Proc.new { |browsers| browsers.split(",") }
    )

    option(
      :verbose,
      :short        => "-v",
      :long         => "--verbose",
      :description  => "More verbose output",
      :boolean      => true
    )

    option(
      :help,
      :short        => "-h",
      :long         => "--help",
      :description  => "Show this message",
      :on           => :tail,
      :boolean      => true,
      :show_options => true,
      :exit         => 0
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
browser_shooter-0.3.9 lib/browser_shooter/argv_parser.rb
browser_shooter-0.3.7 lib/browser_shooter/argv_parser.rb
browser_shooter-0.3.5 lib/browser_shooter/argv_parser.rb
browser_shooter-0.3.3 lib/browser_shooter/argv_parser.rb
browser_shooter-0.3.1 lib/browser_shooter/argv_parser.rb