From 5496620f4fdd959f0aa8ffc4c6b9beb76880fefd Mon Sep 17 00:00:00 2001 From: Lutz Lengemann Date: Tue, 16 Feb 2016 09:58:59 +0100 Subject: Option without can have multiple value. --- lib/bundler/cli/viz.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/bundler') 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 -- cgit v1.2.3