mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Moved options merging before query parameter parsing.
This commit is contained in:
parent
03d9a9f16d
commit
bcc5d5116e
8
jsdoc.js
8
jsdoc.js
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user