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|