JSDOC/Options.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 30 Jun 2010 09:49:17 +0000 (17:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 30 Jun 2010 09:49:17 +0000 (17:49 +0800)
JSDOC/Options.js

index 378bd6d..70a94ee 100644 (file)
@@ -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",