JSDOC/Options.js
[gnome.introspection-doc-generator] / JSDOC / Options.js
index c682c5b..a6724dd 100644 (file)
@@ -7,19 +7,21 @@ File = import.File.File;
 
 Options = {
     
-    "files" : [],  // was _
-    "directory" : '',   // was d. ?? source directory (needed to put temporary files..)
+    "baseDir" :  '',  // base directory - 
+    "target" : '',   // was d. ?? source directory (needed to put temporary files..)
     "cacheDirectory" : '',
     "conf" : '',       // was c.
     "template": '',   // was t.
     // "recurse": false,   // was r. - not supported..
     "ext": '',   // was x.
+    "publishExt" : 'html',
     "private": '',   // was p
     "allfunctions": '',   // was a
     "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
@@ -49,10 +51,10 @@ Options = {
         }
         // help ?? -- usage..
         
-        if (!this.files.length) {
+        if (!this.src.length) {
             throw {
                 name: "ArgumentError", 
-                message: "No files specified" 
+                message: "No source directories specified" 
             };
         }
         if (!this.template) {
@@ -62,7 +64,7 @@ Options = {
             };
         }
          
-        if (!this.directory) {
+        if (!this.target) {
             throw {
                 name: "ArgumentError", 
                 message: "No directory specified"