projects
/
roojspacker
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d353fc2
)
src/main.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 5 Jul 2017 02:46:22 +0000
(10:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 5 Jul 2017 02:46:22 +0000
(10:46 +0800)
src/main.vala
patch
|
blob
|
history
diff --git
a/src/main.vala
b/src/main.vala
index
8b3777a
..
eaa4a3f
100644
(file)
--- a/
src/main.vala
+++ b/
src/main.vala
@@
-4,29
+4,11
@@
public static int main(string[] args)
// debug("ARG: %s\n", a);
//}
// 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);
-
- }
- var pr = new JSDOC.PackerRun(args);
- pr.run;
+ var pr = new JSDOC.PackerRun( );
+ pr.parseArgs(args);
+ pr.run();
return 0;
}
\ No newline at end of file
return 0;
}
\ No newline at end of file