Fix help text for --port, tweak arrangement of help items
This commit is contained in:
@@ -1087,16 +1087,17 @@ class CommandLineTools {
|
||||
|
||||
if (isProjectCommand) {
|
||||
|
||||
LogHelper.println (" \x1b[3m(windows|macos|linux)\x1b[0m \x1b[1m-cpp\x1b[0m -- Build with C++ (default behavior)");
|
||||
LogHelper.println (" \x1b[3m(windows|macos|linux)\x1b[0m \x1b[1m-neko\x1b[0m -- Build with Neko instead of C++");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|linux)\x1b[0m \x1b[1m-cpp\x1b[0m -- Build with C++ (default behavior)");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|linux)\x1b[0m \x1b[1m-neko\x1b[0m -- Build with Neko instead of C++");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|ios|android)\x1b[0m \x1b[1m-air\x1b[0m -- Build with AIR instead of C++");
|
||||
|
||||
}
|
||||
|
||||
if (isBuildCommand) {
|
||||
|
||||
LogHelper.println (" \x1b[3m(windows|macos|linux|android)\x1b[0m \x1b[1m-static\x1b[0m -- Compile as a static C++ executable");
|
||||
LogHelper.println (" \x1b[3m(windows|macos|linux)\x1b[0m \x1b[1m-32\x1b[0m -- Compile for 32-bit instead of the OS default");
|
||||
LogHelper.println (" \x1b[3m(windows|macos|linux)\x1b[0m \x1b[1m-64\x1b[0m -- Compile for 64-bit instead of the OS default");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|linux|android)\x1b[0m \x1b[1m-static\x1b[0m -- Compile as a static C++ executable");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|linux)\x1b[0m \x1b[1m-32\x1b[0m -- Compile for 32-bit instead of the OS default");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|linux)\x1b[0m \x1b[1m-64\x1b[0m -- Compile for 64-bit instead of the OS default");
|
||||
LogHelper.println (" \x1b[3m(ios|android)\x1b[0m \x1b[1m-armv6\x1b[0m -- Compile for ARMv6 instead of the OS defaults");
|
||||
LogHelper.println (" \x1b[3m(ios|android)\x1b[0m \x1b[1m-armv7\x1b[0m -- Compile for ARMv7 instead of the OS defaults");
|
||||
LogHelper.println (" \x1b[3m(ios|android)\x1b[0m \x1b[1m-armv7s\x1b[0m -- Compile for ARMv7s instead of the OS defaults");
|
||||
@@ -1110,12 +1111,6 @@ class CommandLineTools {
|
||||
|
||||
}
|
||||
|
||||
if (isBuildCommand) {
|
||||
|
||||
LogHelper.println (" \x1b[3m(emscripten)\x1b[0m \x1b[1m-webassembly\x1b[0m -- Compile for WebAssembly instead of asm.js");
|
||||
|
||||
}
|
||||
|
||||
if (isProjectCommand) {
|
||||
|
||||
if (command != "run" && command != "trace") {
|
||||
@@ -1128,26 +1123,25 @@ class CommandLineTools {
|
||||
LogHelper.println (" \x1b[3m(ios|tvos)\x1b[0m \x1b[1m-simulator\x1b[0m -- Target the device simulator");
|
||||
LogHelper.println (" \x1b[3m(ios)\x1b[0m \x1b[1m-simulator -ipad\x1b[0m -- Build/test for the iPad Simulator");
|
||||
LogHelper.println (" \x1b[3m(android)\x1b[0m \x1b[1m-emulator\x1b[0m -- Target the device emulator");
|
||||
LogHelper.println (" \x1b[3m(flash)\x1b[0m \x1b[1m-web\x1b[0m -- Test Flash target using a web template");
|
||||
LogHelper.println (" \x1b[3m(air)\x1b[0m \x1b[1m-ios\x1b[0m -- Target iOS instead of AIR desktop");
|
||||
LogHelper.println (" \x1b[3m(air)\x1b[0m \x1b[1m-android\x1b[0m -- Target Android instead of AIR desktop");
|
||||
|
||||
if (command == "run" || command == "test") {
|
||||
|
||||
LogHelper.println (" \x1b[3m(emscripten|html5|flash)\x1b[0m \x1b[1m-port\x1b[0m -- Override port setting on test server");
|
||||
LogHelper.println (" \x1b[3m(emscripten|html5|flash)\x1b[0m \x1b[1m-nolaunch\x1b[0m -- Begin test server without launching");
|
||||
|
||||
}
|
||||
|
||||
if (command == "build" || command == "test") {
|
||||
|
||||
//LogHelper.println (" \x1b[3m(html5)\x1b[0m \x1b[1m-minify\x1b[0m -- Minify output using the Google Closure compiler");
|
||||
LogHelper.println (" \x1b[3m(emscripten|html5)\x1b[0m \x1b[1m-minify\x1b[0m -- Minify application file");
|
||||
//LogHelper.println (" \x1b[3m(html5)\x1b[0m \x1b[1m-minify -yui\x1b[0m -- Minify output using the YUI compressor");
|
||||
LogHelper.println (" \x1b[3m(emscripten|html5|flash)\x1b[0m \x1b[1m--port=\x1b[0;3mvalue\x1b[0m -- Set port for test server");
|
||||
|
||||
}
|
||||
|
||||
LogHelper.println (" \x1b[3m(flash)\x1b[0m \x1b[1m-web\x1b[0m -- Test Flash target using a web template");
|
||||
LogHelper.println (" \x1b[3m(windows|mac|ios|android)\x1b[0m \x1b[1m-air\x1b[0m -- Build with AIR instead of C++");
|
||||
LogHelper.println (" \x1b[3m(air)\x1b[0m \x1b[1m-ios\x1b[0m -- Target iOS instead of AIR desktop");
|
||||
LogHelper.println (" \x1b[3m(air)\x1b[0m \x1b[1m-android\x1b[0m -- Target Android instead of AIR desktop");
|
||||
if (command != "run" && command != "trace") {
|
||||
|
||||
LogHelper.println (" \x1b[3m(emscripten)\x1b[0m \x1b[1m-webassembly\x1b[0m -- Compile for WebAssembly instead of asm.js");
|
||||
|
||||
}
|
||||
|
||||
LogHelper.println ("");
|
||||
LogHelper.println (" " + LogHelper.accentColor + "Experimental Options:" + LogHelper.resetColor);
|
||||
|
||||
@@ -760,7 +760,7 @@ class PlatformSetup {
|
||||
|
||||
public static function setupEmscripten ():Void {
|
||||
|
||||
LogHelper.println ("\x1b[1mIn order to build for WebAssembly or ASM.js, you must download");
|
||||
LogHelper.println ("\x1b[1mIn order to build for WebAssembly or asm.js, you must download");
|
||||
LogHelper.println ("and install the Emscripten SDK.");
|
||||
LogHelper.println ("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user