Add support for --help, -help, -h
This commit is contained in:
@@ -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) == "-") {
|
||||
|
||||
Reference in New Issue
Block a user