diff options
author | Lutz Lengemann <mobilutz@users.noreply.github.com> | 2016-02-16 09:58:59 +0100 |
---|---|---|
committer | Lutz Lengemann <mobilutz@users.noreply.github.com> | 2016-02-16 09:58:59 +0100 |
commit | 5496620f4fdd959f0aa8ffc4c6b9beb76880fefd (patch) | |
tree | 81b10dc270ffea33bb3927c9e48f4d770a48b89b | |
parent | 73e23068114da3cbb110a9a8c1aed4cd03b1a0f8 (diff) | |
download | bundler-5496620f4fdd959f0aa8ffc4c6b9beb76880fefd.tar.gz |
Option without can have multiple value.
-rw-r--r-- | lib/bundler/cli/viz.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli/viz.rb b/lib/bundler/cli/viz.rb index 7ccd306d..ba30484c 100644 --- a/lib/bundler/cli/viz.rb +++ b/lib/bundler/cli/viz.rb @@ -9,7 +9,8 @@ module Bundler def run require "graphviz" output_file = File.expand_path(options[:file]) - graph = Graph.new(Bundler.load, output_file, options[:version], options[:requirements], options[:format], options[:without]) + without = options[:without].empty? ? [] : options[:without].first.split(',') + graph = Graph.new(Bundler.load, output_file, options[:version], options[:requirements], options[:format], without) graph.viz rescue LoadError => e Bundler.ui.error e.inspect |