X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FOptions.js;h=7b81f3863fe3d0fb030ec0d0f997e36dfcf5beb6;hp=f01c9bad14360fbb3cd356e373222c8de7ce9c4e;hb=954be6f9897a8e3866089bb5f67fbe5409b608b9;hpb=b1cba972ac75ff813e92f92f5485e1e7de3d2324 diff --git a/JSDOC/Options.js b/JSDOC/Options.js index f01c9ba..7b81f38 100644 --- a/JSDOC/Options.js +++ b/JSDOC/Options.js @@ -22,7 +22,7 @@ Options = { "--exclude-src" : 'Ex', "--baseDir" : 'Base Directory (root directory of code)', "--target" : 'Target Directory (where html files go)', - "--cacheDirectory": 'Cached Files Directory', + "--cacheDirectory": 'Cached Files Directory (or blank to not cache)', "--conf" : 'Read From a Configuration file', // was c. - configuration file.. - parsed with JSON.parse "--templateDir" : 'Template Directory', // was t. // "recurse": false, // was r. - not supported.. @@ -127,7 +127,7 @@ Options = { if (!v.length || v[0] != '/') { v = _this.baseDir + (v.length ? '/' + v : ''); } - if (!File.isDirectory(v)) { + if (!File.exists(v)) { throw { name: "ArgumentError", message: "invalid Source Directory : " + v @@ -154,7 +154,8 @@ Options = { message: "No directory specified" }; } - print(JSON.stringify(this)); + + //print(JSON.stringify(this, null,4)); // should cacheDirectory be a subdirectory of target?? // if not set.. @@ -213,17 +214,19 @@ Options = { i++; while(i < args.length) { - if (args[i].substring(0,2) != '--'){ - + if (args[i].substring(0,2) == '--'){ + i--; break; } this[a].push(args[i]); + i++; } - i--; + + continue; } throw { name: "ArgumentError", - message: "Do not know how to handle: " + a + message: "Do not know how to handle: " + a + ' ' + typeof(this[a]) }; }