JSDOC/Options.js
[gnome.introspection-doc-generator] / JSDOC / Options.js
1 //<script type="text/javascript">
2 /**
3  * Options management...
4  */
5 XObject = import.XObject.XObject;
6 File = import.File.File;
7
8 Options = {
9     
10     "files" : [],  // was _
11     "directory" : '',   // was d.
12     "conf" : '',       // was c.
13     "template": '',   // was t.
14     "recurse": '',   // was r.
15     "ext": '',   // was x.
16     "private": '',   // was p
17     "allfunctions": '',   // was a
18     "encoding": '',   // was e.
19     "nocode": '',  // was n
20     "out": '',   // was o.
21     "suppress": '',  // was s
22     "testmode": '',  // was t
23     "help": '',   // was h
24     "verbose": '',   // was v
25     "disablecache": '',   // was C
26     "define" : [],   // was D.
27     "handler" : [],  // was H
28     LOG : {
29         warn : function(str) {
30             print("Warn: " +str );
31         },
32         inform : function(str) {
33             print("Inform: " +str );
34         },
35         close : function() { },
36         flush : function() { },
37         out: false,
38         warnings : [],
39         verbose : false    
40     },
41     init : function()
42     {
43         this.LOG.verbose = this.verbose;
44         
45         
46         if (this.conf) {
47             XObject.extend(this, JSON.parse(File.read(this.conf)));;
48         }
49         // help ?? -- usage..
50         
51         if (!this.files.length) {
52             throw {
53                 name: "ArgumentError", 
54                 message: "No files specified" 
55             };
56         }
57         if (!this.template) {
58             
59         }
60         
61         
62         
63     }
64 }