JSDOC/Options.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Jul 2010 10:30:04 +0000 (18:30 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Jul 2010 10:30:04 +0000 (18:30 +0800)
JSDOC/Options.js

index beaeb45..b01ea7e 100644 (file)
@@ -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;
         }