From: Alan Knowles Date: Tue, 6 Jul 2010 10:30:04 +0000 (+0800) Subject: JSDOC/Options.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=62175f99b632b2f61ab2cc70d37d1f6a054f401f JSDOC/Options.js --- diff --git a/JSDOC/Options.js b/JSDOC/Options.js index beaeb45..b01ea7e 100644 --- a/JSDOC/Options.js +++ b/JSDOC/Options.js @@ -24,7 +24,7 @@ Options = { "--target" : 'Target Directory (where html files go)', "--cacheDirectory": 'Cached Files Directory', "--conf" : 'Read From a Configuration file', // was c. - configuration file.. - parsed with JSON.parse - "--template" : 'Template Directory', // was t. + "--templateDir" : 'Template Directory', // was t. // "recurse": false, // was r. - not supported.. "--ext" : 'Extension of code files to read (normally js)', // was x. "--publishExt" : 'Extension of html files to write (normally html)', @@ -50,7 +50,7 @@ Options = { "target" : '', // was d. ?? source directory (needed to put temporary files..) "cacheDirectory" : '', "conf" : '', // was c. - configuration file.. - parsed with JSON.parse - "template": '', // was t. + "templateDir": '', // was t. // "recurse": false, // was r. - not supported.. "ext": 'js', // was x. "publishExt" : 'html', @@ -132,14 +132,14 @@ Options = { }); - if (!this.template) { + if (!this.templateDir) { throw { name: "ArgumentError", message: "No template Directory specified" }; } - if (this.template[0] !='/') { - this.template = this.baseDir + '/' + this.template; + if (this.templateDir[0] !='/') { + this.templateDir = this.baseDir + '/' + this.template; }