lib/inspec/cli.rb in inspec-0.24.0 vs lib/inspec/cli.rb in inspec-0.25.0
- old
+ new
@@ -106,10 +106,13 @@
desc 'exec PATHS', 'run all test files at the specified PATH.'
exec_options
def exec(*targets)
diagnose
- run_tests(targets, opts)
+ o = opts.dup
+
+ # run tests
+ run_tests(targets, o)
end
desc 'detect', 'detect the target OS'
target_options
option :format, type: :string