lib/qed/command.rb in qed-2.3.0 vs lib/qed/command.rb in qed-2.4.0
- old
+ new
@@ -132,11 +132,11 @@
end
opt.on('--loadpath', "-I PATH", "add paths to $LOAD_PATH") do |arg|
@options[:loadpath] ||= []
@options[:loadpath].concat(arg.split(/[:;]/).map{ |dir| File.expand_path(dir) })
end
- opt.on('--require', "-r", "require library") do |arg|
+ opt.on('--require', "-r LIB", "require library") do |arg|
@options[:requires] ||= []
@options[:requires].concat(arg.split(/[:;]/)) #.map{ |dir| File.expand_path(dir) })
end
opt.on('--trace', '-t', "show full backtraces for exceptions") do
@options[:trace] = true
@@ -205,11 +205,11 @@
else
file
end
end
files = files.flatten.uniq
- files.map{|f| File.expand_path(f) }.sort
+ files.map{|f| File.expand_path(f) }.uniq.sort
end
# Parse command-line options along with profile options.
def parse(argv)
#@files = []
@@ -347,6 +347,5 @@
end
end
end
-