lib/spandx/cli.rb in spandx-0.10.1 vs lib/spandx/cli.rb in spandx-0.11.0

- old
+ new

@@ -21,9 +21,10 @@ desc 'scan LOCKFILE', 'Scan a lockfile and list dependencies/licenses' method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information' method_option :recursive, aliases: '-r', type: :boolean, desc: 'Perform recursive scan', default: false method_option :airgap, aliases: '-a', type: :boolean, desc: 'Disable network connections', default: false method_option :logfile, aliases: '-l', type: :string, desc: 'Path to a logfile', default: '/dev/null' + method_option :format, aliases: '-f', type: :string, desc: 'Format of report', default: 'json' def scan(lockfile) Spandx.airgap = options[:airgap] Spandx.logger = Logger.new(options[:logfile]) if options[:help]