aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/viz.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/viz.rb')
-rw-r--r--lib/bundler/cli/viz.rb3
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