summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLutz Lengemann <mobilutz@users.noreply.github.com>2016-02-16 09:58:59 +0100
committerLutz Lengemann <mobilutz@users.noreply.github.com>2016-02-16 09:58:59 +0100
commit5496620f4fdd959f0aa8ffc4c6b9beb76880fefd (patch)
tree81b10dc270ffea33bb3927c9e48f4d770a48b89b
parent73e23068114da3cbb110a9a8c1aed4cd03b1a0f8 (diff)
downloadbundler-5496620f4fdd959f0aa8ffc4c6b9beb76880fefd.tar.gz
Option without can have multiple value.
-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 7ccd306d63..ba30484c99 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