Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16 from bryanculver/master
Browse files Browse the repository at this point in the history
CLI: Assign :database_path to value from 'database-path' in options.
  • Loading branch information
rtfpessoa authored Oct 15, 2019
2 parents e719b65 + abd0afb commit 0307fa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dependency_spy/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class CLI < Thor
method_option('with-color', :type => :boolean, :default => true)
method_option('ignore', :aliases => :i, :type => :array, :default => [])
def check
manifests = API.check(options)
the_options = options.dup
the_options[:database_path] = the_options[:"database-path"]
the_options.freeze
manifests = API.check(the_options)

formatted_output = if (options['formatter'] == 'text') && !options['output-path'] && options['with-color']
DependencySpy::Formatters::Text.format(manifests, options['severity-threshold'])
Expand Down

0 comments on commit 0307fa2

Please sign in to comment.