Moved options merging before query parameter parsing.

This commit is contained in:
Rafał Wrzeszcz 2011-12-10 23:10:08 +01:00
parent 03d9a9f16d
commit bcc5d5116e

View File

@ -155,10 +155,6 @@ function main() {
throw('Configuration file cannot be evaluated. '+e);
}
if (env.opts.query) {
env.opts.query = require('query').toObject(env.opts.query);
}
// allow to pass arguments from configuration file
if (env.conf.opts) {
for (var opt in env.conf.opts) {
@ -169,6 +165,10 @@ function main() {
}
}
if (env.opts.query) {
env.opts.query = require('query').toObject(env.opts.query);
}
// which version of javascript will be supported? (rhino only)
if (typeof version === 'function') {
version(env.conf.jsVersion || 180);