X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FPackerRun.vala;h=99d379e6c4254774de0a1371525ae442d4b0f163;hb=2010a68dd785effd953b629d2546d077e77e6e00;hp=780726b35b56242d0facd1186bd6aee3b51aa4e6;hpb=8b2b63beb3a02973aa8fc18125ec507f13467d72;p=gnome.introspection-doc-generator diff --git a/JSDOC/PackerRun.vala b/JSDOC/PackerRun.vala index 780726b..99d379e 100644 --- a/JSDOC/PackerRun.vala +++ b/JSDOC/PackerRun.vala @@ -15,8 +15,9 @@ namespace JSDOC public static string opt_debug_target = ""; public static string opt_tmpdir = ""; - + [CCode (array_length = false, array_null_terminated = true)] private static string[]? opt_files = null; + [CCode (array_length = false, array_null_terminated = true)] private static string[]? opt_files_from = null; public static bool opt_debug = false; @@ -25,12 +26,12 @@ namespace JSDOC const OptionEntry[] options = { { "jsfile", 'f', 0, OptionArg.FILENAME_ARRAY, ref opt_files ,"add a file to compile", null }, - // { "target", 't', 0, OptionArg.STRING, ref opt_target, "Target File to write (eg. roojs.js)", null }, - // { "debug-target", 'T', 0, OptionArg.STRING, ref opt_debug_target, "Target File to write debug code (eg. roojs-debug.js)", null }, - // { "tmpdir", 'm', 0, OptionArg.STRING, ref opt_tmpdir, "Temporary Directory to use", null }, + { "target", 't', 0, OptionArg.STRING, ref opt_target, "Target File to write (eg. roojs.js)", null }, + { "debug-target", 'T', 0, OptionArg.STRING, ref opt_debug_target, "Target File to write debug code (eg. roojs-debug.js)", null }, + { "tmpdir", 'm', 0, OptionArg.STRING, ref opt_tmpdir, "Temporary Directory to use", null }, -// { "index-files", 'i', 0, OptionArg.FILENAME_ARRAY, ref opt_files_from ,"files that contain listing of files to compile", null }, - + { "index-files", 'i', 0, OptionArg.FILENAME_ARRAY, ref opt_files_from ,"files that contain listing of files to compile", null }, + { "keep-whitespace", 'w', 0, OptionArg.NONE, ref opt_keep_whitespace, "Keep whitespace", null }, { "debug", 0, 0, OptionArg.NONE, ref opt_debug, "Show debug messages", null }, // fixme -- keepwhite.. cleanup @@ -38,6 +39,10 @@ namespace JSDOC }; public static int main(string[] args) { + foreach(var a in args) { + print("ARG: %s\n", a); + } + var opt_context = new OptionContext ("JSDOC Packer"); try { @@ -87,7 +92,7 @@ namespace JSDOC // now run the Packer... var p = new Packer(opt_target, opt_debug_target); if (opt_files != null) { - GLib.debug("Adding File %s", string.join(", ",opt_files)); + foreach (string f in opt_files) { GLib.debug("Adding File %s", f); p.loadFile(f);