X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FOptions.js;h=7b81f3863fe3d0fb030ec0d0f997e36dfcf5beb6;hp=12f3305a4683c75f1ee4fcba4c959038ff845aef;hb=HEAD;hpb=2e059cb59c591db321e2172a5e5e9f71ecadc689 diff --git a/JSDOC/Options.js b/JSDOC/Options.js index 12f3305..7b81f38 100644 --- a/JSDOC/Options.js +++ b/JSDOC/Options.js @@ -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 @@ -214,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]) }; }