support command-line variables - close #51

This commit is contained in:
josh committed 2018-08-23 14:58:08 -04:00
1 parent d081a4695f
commit 284312a21c
4 files changed
+22 -10

No files matched your search

+6
View File
@@ -60,6 +60,12 @@ module Rscons
end.parse!(argv)
argv.each do |arg|
if arg =~ /^([^=]+)=(.*)$/
Rscons.vars[$1] = $2
end
end
if rsconsfile
unless File.exists?(rsconsfile)
$stderr.puts "Cannot read #{rsconsfile}"