lib/speckle/cli/environment.rb in speckle-0.1.3 vs lib/speckle/cli/environment.rb in speckle-0.1.4
- old
+ new
@@ -23,10 +23,11 @@
options.speckle_lib_dir = "#{ROOT_DIR}/lib"
options.skip_vimrc = false
options.slow_threshold = 10
options.colorize = true
options.bail = false
+ options.tag = nil
parser = OptionParser.new do |opts|
options.opts = opts
opts.banner = "Usage: speckle [options] [file(s) OR directory]"
@@ -54,9 +55,13 @@
options.grep_pattern = pattern.strip
end
opts.on('-i', '--invert', 'Inverts --grep matches') do
options.grep_invert = true
+ end
+
+ opts.on('--tag <tag>', 'Only run tests matching tag') do |tag|
+ options.tag = tag
end
opts.on('-r', '--reporter <reporter>', 'Specify the reporter to use (spec, min, dot, tap)') do |reporter|
options.reporter = reporter.strip
end