JSDOC/Options.js
[gnome.introspection-doc-generator] / JSDOC / Options.js
index ef81cfb..2836831 100644 (file)
@@ -7,7 +7,7 @@ File = import.File.File;
 
 Options = {
     
-    "src" : [],  // array of source directories..
+    "baseDir" :  '',  // base directory - 
     "target" : '',   // was d. ?? source directory (needed to put temporary files..)
     "cacheDirectory" : '',
     "conf" : '',       // was c.
@@ -20,7 +20,8 @@ Options = {
     "encoding": '',   // was e.
     "nocode": '',  // was n
     "out": '',   // was o.
-    "suppress": '',  // was s
+    "suppress": '',  // was s ??? used?
+    "outputSource" : true,
     "testmode": '',  // was t
     "help": '',   // was h
     "verbose": '',   // was v
@@ -69,6 +70,13 @@ Options = {
                 message: "No directory specified" 
             };
         }
+        f (!this.baseDir) {
+            throw {
+                name: "ArgumentError", 
+                message: "No cacheDirectory specified" 
+            };
+        }
+        
         // should cacheDirectory be a subdirectory of target??
         // if not set..
         if (!this.cacheDirectory) {