From c089b0f52756021c7cfb456ad61fe01a7bf31783 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 5 Jul 2017 10:20:59 +0800 Subject: [PATCH] src/jsdoc/PackerRun.vala --- src/jsdoc/PackerRun.vala | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/jsdoc/PackerRun.vala b/src/jsdoc/PackerRun.vala index b56b663..f8fe358 100644 --- a/src/jsdoc/PackerRun.vala +++ b/src/jsdoc/PackerRun.vala @@ -114,37 +114,7 @@ namespace JSDOC { null } }; - public static int main(string[] args) - { - //foreach(var a in args) { - // debug("ARG: %s\n", a); - //} - - 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) -- 2.39.2