Method: Inspec::BaseCLI.exec_options

Defined in:
lib/inspec/base_cli.rb

.exec_optionsObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/inspec/base_cli.rb', line 54

def self.exec_options
  target_options
  profile_options
  option :controls, type: :array,
    desc: 'A list of controls to run. Ignore all other tests.'
  option :format, type: :string,
    desc: 'Which formatter to use: cli, progress, documentation, json, json-min, junit'
  option :color, type: :boolean, default: true,
    desc: 'Use colors in output.'
  option :attrs, type: :array,
    desc: 'Load attributes file (experimental)'
  option :cache, type: :string,
    desc: 'Use the given path for caching dependencies. (default: ~/.inspec/cache)'
  option :create_lockfile, type: :boolean, default: true,
    desc: 'Write out a lockfile based on this execution (unless one already exists)'
end