From: Alan Knowles Date: Wed, 30 Jun 2010 09:49:17 +0000 (+0800) Subject: JSDOC/Options.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=25cd07f3fb5922ef9c87f087eee971bc7837b585 JSDOC/Options.js --- diff --git a/JSDOC/Options.js b/JSDOC/Options.js index 378bd6d..70a94ee 100644 --- a/JSDOC/Options.js +++ b/JSDOC/Options.js @@ -91,17 +91,19 @@ Options = { this.LOG.verbose = this.verbose; - // this is most likely to come from the command line.. - if (this.conf) { - XObject.extend(this, JSON.parse(File.read(this.conf)));; - } - // help ?? -- usage.. - if (!this.baseDir) { + if (!this.baseDir) { // should we set this to cwd? throw { name: "ArgumentError", message: "No baseDir specified" }; } + + // this is most likely to come from the command line.. + if (this.conf) { + XObject.extend(this, JSON.parse(File.read(this.conf)));; + } + // help ?? -- usage.. + if (!this.src.length) { throw { name: "ArgumentError",