From 759b1bb2e58b3d7f6a9c32d6e0bfd1727996d318 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 5 Jul 2017 10:47:12 +0800 Subject: [PATCH] src/jsdoc/PackerRun.vala --- src/jsdoc/PackerRun.vala | 41 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/jsdoc/PackerRun.vala b/src/jsdoc/PackerRun.vala index 79b04a2..dc54811 100644 --- a/src/jsdoc/PackerRun.vala +++ b/src/jsdoc/PackerRun.vala @@ -233,30 +233,29 @@ namespace JSDOC arg_data = &opt_doc_include_private, description = "Document Private functions", arg_description = null - }, - - 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); - } + } + }; + var opt_context = new OptionContext ("JSDOC Packer"); - - - - } 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)); + 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); + + } + } -- 2.39.2