From 25cd07f3fb5922ef9c87f087eee971bc7837b585 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 30 Jun 2010 17:49:17 +0800 Subject: [PATCH] JSDOC/Options.js --- JSDOC/Options.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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", -- 2.39.2