JSDOC/PackerRun.vala
authorAlan Knowles <alan@roojs.com>
Wed, 25 Nov 2015 10:14:30 +0000 (18:14 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Nov 2015 10:14:30 +0000 (18:14 +0800)
JSDOC/PackerRun.vala

index 93d2af5..780726b 100644 (file)
@@ -7,33 +7,7 @@
 namespace JSDOC
 {
        // --------------- <<<<<<< <MAIN HERE....
-       public static int main(string[] args) 
-       {
-               var opt_context = new OptionContext ("JSDOC Packer");
-                       
-                       try {
-                               opt_context.set_help_enabled (true);
-                               opt_context.add_main_entries (options, null);
-                               if (!opt_context.parse ( ref args)) {
-                                       print("options parse error");
-                                       GLib.Process.exit(Posix.EXIT_FAILURE);
-                               }
-
-                               
-                                
-                               
-                       } catch (OptionError e) {
-                               stdout.printf ("error: %s\n", e.message);
-                               stdout.printf ("Run '%s --help' to see a full list of available command line options.\n %s", 
-                                                        args[0], opt_context.get_help(true,null));
-                               GLib.Process.exit(Posix.EXIT_FAILURE);
-                                
-                       }
-               
-               new PackerRun(args);
-               return 0;
-       }
-
+       
 
        class PackerRun : Application  
        {
@@ -62,7 +36,33 @@ namespace JSDOC
                        
                        { null }
                };
+               public static int main(string[] args) 
+               {
+                       var opt_context = new OptionContext ("JSDOC Packer");
+                       
+                               try {
+                                       opt_context.set_help_enabled (true);
+                                       opt_context.add_main_entries (options, null);
+                                       if (!opt_context.parse ( ref args)) {
+                                               print("options parse error");
+                                               GLib.Process.exit(Posix.EXIT_FAILURE);
+                                       }
+
+                               
+                                        
+                               
+                               } catch (OptionError e) {
+                                       stdout.printf ("error: %s\n", e.message);
+                                       stdout.printf ("Run '%s --help' to see a full list of available command line options.\n %s", 
+                                                                args[0], opt_context.get_help(true,null));
+                                       GLib.Process.exit(Posix.EXIT_FAILURE);
+                                        
+                               }
                
+                       new PackerRun(args);
+                       return 0;
+               }
+
 
        
                public PackerRun (string[] args)