Permalink
Browse files

Use PATH_SEPARATOR instead of hard-coded colon:

  - better cross platform compatibility
  - closes #83
  • Loading branch information...
1 parent aaea6dd commit 601d38c9ec191f00059ef040940a4b6cf244c6ce @rsanheim rsanheim committed Oct 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/rcov
View
@@ -85,8 +85,8 @@ EOF
options.destdir = dir
end
- opts.on("-I", "--include PATHS", "Prepend PATHS to $: (colon separated list)") do |paths|
- options.loadpaths = paths.split(/:/)
+ opts.on("-I", "--include PATHS", "Prepend PATHS to the load-path variable ($:) (#{File::PATH_SEPARATOR} separated list)") do |paths|
+ options.loadpaths = paths.split(File::PATH_SEPARATOR)
end
opts.on("--[no-]comments", "Mark all comments by default.", "(default: --no-comments)") do |comments_run_p|

0 comments on commit 601d38c

Please sign in to comment.