Sha256: bc347d322f794f58b4f7a6737d567a3aa150a096c28f44568c24511a5df9578c

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

#!/usr/bin/env ruby
require 'optparse'
require 'soundcheck'

options = {}
option_parser = OptionParser.new do |opts|
  opts.banner = "Usage: soundcheck [options] [file or path]"

  opts.on("--fast", "Run fast specs only") do |v|
    options[:fast] = v
  end

  opts.on("--help", "Show this info") do |v|
    puts opts
    exit
  end
end

option_parser.parse!(ARGV)
cmd = Soundcheck.new(ARGV[0], options).command_to_run
puts cmd
exec cmd

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soundcheck-0.1.0 bin/soundcheck