From 1d5eab56d5073ba31783c52db26d576040696ae7 Mon Sep 17 00:00:00 2001 From: Timothy Elliott Date: Mon, 14 May 2012 16:20:47 -0700 Subject: [PATCH] Support colon-delimited include paths in command-line front-end Similar to the Ruby -I command, rdebug should support multiple load paths separated by colons. --- bin/rdebug | 2 +- test/tdebug.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rdebug b/bin/rdebug index bd99d85..80dea9c 100755 --- a/bin/rdebug +++ b/bin/rdebug @@ -200,7 +200,7 @@ EOB options.host = host end opts.on('-I', '--include PATH', String, 'Add PATH to $LOAD_PATH') do |path| - $LOAD_PATH.unshift(path) + $LOAD_PATH.unshift(*path.split(':')) end opts.on('--no-control', 'Do not automatically start control thread') do options.control = false diff --git a/test/tdebug.rb b/test/tdebug.rb index 95ec483..f17861a 100755 --- a/test/tdebug.rb +++ b/test/tdebug.rb @@ -114,7 +114,7 @@ def debug_program(options) options.nx = true end opts.on("-I", "--include PATH", String, "Add PATH to $LOAD_PATH") do |path| - $LOAD_PATH.unshift(path) + $LOAD_PATH.unshift(*path.split(':')) end opts.on("-r", "--require SCRIPT", String, "Require the library, before executing your script") do |name|