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

Commit

Permalink
CLI: Assign :database_path to value from 'database-path' in options.
Browse files Browse the repository at this point in the history
Simple handling for multi-word argument name.
Only 'database-path' is passed into ::API check function.

Likely backward compatible as setting was never honored before.

Closes #15.
  • Loading branch information
bryanculver committed Oct 15, 2019
1 parent e719b65 commit abd0afb
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 abd0afb

Please sign in to comment.