Sha256: 41c5f2f823566d581ece0c2822faa55997befc82bec197d2e68f480d7f1ca275
Contents?: true
Size: 508 Bytes
Versions: 18
Compression:
Stored size: 508 Bytes
Contents
# #!/usr/bin/env ruby require 'optparse' @command = nil opts = OptionParser.new("", 24, ' ') { |opts| opts.banner = "Usage: script/test [command]" opts.separator "" opts.separator "Command options:" opts.on("-C", "--command COMMAND", "setup (not implemented yet: unit, functional)") { | c | @command = c.downcase.to_sym if c } opts.on_tail("-h", "--help", "Show this message") do puts opts exit end opts.parse! ARGV } case @command when :setup require 'test/setup' end
Version data entries
18 entries across 18 versions & 2 rubygems