diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/vpath.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/vpath.rb b/tool/vpath.rb index cfa48313de..0c8d6071ea 100644 --- a/tool/vpath.rb +++ b/tool/vpath.rb @@ -66,12 +66,13 @@ class VPath end def list - @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"]) @additional.reject! do |dirs| case dirs when String @list << dirs when Array + raise "--path-separator option is needed for vpath list" unless @separator + # @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"]) @list.concat(dirs[0].split(@separator)) end true |