JSDOC/PackerRun.vala
[gnome.introspection-doc-generator] / JSDOC / PackerRun.vala
index 9885abe..c723044 100644 (file)
@@ -35,8 +35,8 @@ namespace JSDOC
                public static string opt_tmpdir = "";
                
                
-               public static string[]? opt_files = null;
-               public static string[]? opt_files_from = null;
+               private static string[]? opt_files = null;
+               private static string[]? opt_files_from = null;
                public static bool opt_debug = false;
                
 
@@ -78,8 +78,10 @@ namespace JSDOC
                        // now run the Packer...
                        var p = new Packer(opt_target, opt_debug_target);
                        if (opt_files != null) {
-                               GLib.debug("Adding Files %d", opt_files.length);
-                               p.loadFiles(opt_files);
+                               foreach (string f in opt_files) {
+                                       GLib.debug("Adding File %s", f);
+                                       p.loadFile(f);
+                               }
                        } else {
                                GLib.debug("No files added");
                        }