Add support for --help, -help, -h

This commit is contained in:
Joshua Granick
2018-04-18 14:08:41 -07:00
parent 3b62a4b43a
commit d6c8e7e2ef

View File

@@ -76,7 +76,13 @@ class CommandLineTools {
}
if (LogHelper.verbose && command != "") {
if (command == "" && targetFlags.exists ("help")) {
command = "help";
}
if (LogHelper.verbose && command != "help" && command != "") {
displayInfo ();
Sys.println ("");
@@ -2583,6 +2589,10 @@ class CommandLineTools {
HaxelibHelper.debug = true;
} else if (argument == "--help" || argument == "-help" || argument == "-h") {
targetFlags.set ("help", "");
} else if (argument.substr (0, 1) == "-") {
if (argument == "-dce" || argument.substr (1, 1) == "-") {