lib/speckle/cli/environment.rb in speckle-0.1.24 vs lib/speckle/cli/environment.rb in speckle-0.1.25
- old
+ new
@@ -25,10 +25,11 @@
options.skip_vimrc = false
options.slow_threshold = 10
options.colorize = true
options.bail = false
options.tag = nil
+ options.profile = false
parser = OptionParser.new do |opts|
options.opts = opts
opts.banner = "Usage: speckle [options] [file(s) OR directory]"
@@ -80,9 +81,13 @@
options.vim = vim.strip
end
opts.on('-s', '--slow-threshold <ms>', Integer, 'Threshold in milliseconds to indicate slow tests') do |ms|
options.slow_threshold = ms
+ end
+
+ opts.on('-p', '--profile', 'Profiles the tests run') do
+ options.profile = true
end
opts.on('-k', '--skip-vimrc', 'Does not load ~/.vimrc file') do
options.skip_vimrc = true
end