JSDOC/PackerRun.vala
[gnome.introspection-doc-generator] / JSDOC / PackerRun.vala
index d241224..a05e776 100644 (file)
@@ -20,6 +20,7 @@ namespace JSDOC
                
                        
                        { "target", 0, 0, OptionArg.STRING, ref opt_target, "Target File to write (eg. roojs.js)", null },
+                       { "debug-target", 0, 0, OptionArg.STRING, ref opt_debug_target, "Target File to write debug code (eg. roojs.js)", null },
                        { "tmpdir", 0, 0, OptionArg.STRING, ref opt_tmpdir, "Temporary Directory to use", null },
                        { "file", 0, 0, OptionArg.STRING_ARRAY, ref opt_files ,"add a file to compile", null },
                        { "files-from", 0, 0, OptionArg.STRING, ref opt_files_from ,"a text file listing files to compile", null },              
@@ -27,13 +28,13 @@ namespace JSDOC
                        { "debug", 0, 0, OptionArg.NONE, ref opt_debug, "Show debug messages", null },
                        { null }
                };
-               public static string opt_target;
-               public static string opt_tmpdir;
+               public static string opt_target = "";
+               public static string opt_tmpdir = "";
                
                
-               public static string[] opt_files;
-               public static string opt_files_from;
-               public static bool opt_debug;
+               public static string[] opt_files = {};
+               public static string opt_files_from = "";
+               public static bool opt_debug = false;
                
 
 
@@ -62,9 +63,11 @@ namespace JSDOC
                                GLib.Process.exit(Posix.EXIT_FAILURE);
                                 
                        }
+                       // what's required...
                        
-                       // now run the Packer...
                        
+                       // now run the Packer...
+                       var p = new Packer(opt_target, opt_debugTarget);
                        
                }