[wip]platform_main.h:cleanup usage output

This commit is contained in:
andy5995
2018-09-14 13:50:43 -05:00
parent 37c8030cae
commit 737d978b08

View File

@@ -198,33 +198,42 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
// MAX WIDTH FOR MAN PAGE // MAX WIDTH FOR MAN PAGE
// "================================================================================" // "================================================================================"
if (foundInvalidArgs == true) { if (foundInvalidArgs == true) {
printf("\n"); printf("\n\n");
} }
printf("\n%s, usage", extractFileFromDirectoryPath(argv0).c_str()); printf("\n\%s, usage\n\
printf("\n\nCommandline Parameter: Description:"); Commandline Parameter: Description:\n\n\
printf("\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"); %s Displays this help text.",
printf("\n\n%s \t\tDisplays this help text.", GAME_ARGS[GAME_ARG_HELP]); extractFileFromDirectoryPath(argv0).c_str(), GAME_ARGS[GAME_ARG_HELP]);
printf("\n\n%s \tAutomatically starts a game with the last game", GAME_ARGS[GAME_ARG_AUTOSTART_LASTGAME]); printf("\n\n\
printf("\n\n \tsettings you played."); %s\n\
Automatically starts a game with the last game\n\
settings you played.",
GAME_ARGS[GAME_ARG_AUTOSTART_LASTGAME]);
printf("\n\n%s=x \tLoads the last saved game.", GAME_ARGS[GAME_ARG_AUTOSTART_LAST_SAVED_GAME]); printf("\n\n\
printf("\n\n \tWhere x is an optional name of the saved game file to load."); %s=x\n\
printf("\n\n \tIf x is not specified we load the last game that was saved."); Loads the last saved game.\n\
Where 'x' is an optional name of the saved game file to load.\n\
If 'x' is not specified we load the last game that was saved.",
GAME_ARGS[GAME_ARG_AUTOSTART_LAST_SAVED_GAME]);
printf("\n\n%s=x,y,z \tRun in auto test mode.", GAME_ARGS[GAME_ARG_AUTO_TEST]); printf("\n\n\
printf("\n\n \tWhere x is an optional maximum # seconds to play."); %s=x,y,z\n\
printf("\n\n \tIf x is not specified the default is 1200 seconds (20 minutes)."); Run in auto test mode\n\
printf("\n\n \tWhere y is an optional game settings file to play."); Where 'x' is an optional maximum # seconds to play.\n\
printf("\n\n \tIf y is not specified (or is empty) then auto test cycles"); If 'x' is not specified the default is 1200 seconds (20 minutes).\n\
printf("\n\n \tthrough playing scenarios."); Where 'y' is an optional game settings file to play.\n\
printf("\n\n \tWhere z is the word 'exit' indicating the game should exit"); If 'y' is not specified (or is empty) then auto test cycles\n\
printf("\n\n \tafter the game is finished or the time runs out. If z is"); through playing scenarios.\n\
printf("\n\n \tnot specified (or is empty) then auto test continues to cycle."); Where 'z' is the word 'exit' indicating the game should exit\n\
after the game is finished or the time runs out. If 'z' is\n\
not specified (or is empty) then auto test continues to cycle.",
GAME_ARGS[GAME_ARG_AUTO_TEST]);
printf("\n\n%s=x:y \t\tAuto connect to host server at IP or hostname x using", GAME_ARGS[GAME_ARG_CONNECT]); printf("\n\n%s=x:y \t\tAuto connect to host server at IP or hostname x using", GAME_ARGS[GAME_ARG_CONNECT]);
printf("\n\n \t port y. Shortcut version of using %s and %s.", GAME_ARGS[GAME_ARG_CLIENT], GAME_ARGS[GAME_ARG_USE_PORTS]); printf("\n\n \t port y. Shortcut version of using %s and %s.", GAME_ARGS[GAME_ARG_CLIENT], GAME_ARGS[GAME_ARG_USE_PORTS]);
printf("\n\n \t*NOTE: to automatically connect to the first LAN host you may"); printf("\n \t*NOTE: to automatically connect to the first LAN host you may");
printf("\n\n \t use: %s=auto-connect", GAME_ARGS[GAME_ARG_CONNECT]); printf("\n\n \t use: %s=auto-connect", GAME_ARGS[GAME_ARG_CONNECT]);
printf("\n\n%s=x \tAuto connect to host server at IP or hostname x.", GAME_ARGS[GAME_ARG_CLIENT]); printf("\n\n%s=x \tAuto connect to host server at IP or hostname x.", GAME_ARGS[GAME_ARG_CLIENT]);