| 409 | } |
| 410 | |
| 411 | void printHelp() |
| 412 | { |
| 413 | std::cout << "usage: openloco [options] [path]" << std::endl; |
| 414 | std::cout << " host [options] <path>" << std::endl; |
| 415 | std::cout << " join [options] <address>" << std::endl; |
| 416 | std::cout << " uncompress [options] <path>" << std::endl; |
| 417 | std::cout << " simulate [options] <path> <ticks> [path]" << std::endl; |
| 418 | std::cout << " compare [options] <path1> <path2>" << std::endl; |
| 419 | std::cout << std::endl; |
| 420 | std::cout << "options:" << std::endl; |
| 421 | std::cout << "--bind Address to bind to when hosting a server" << std::endl; |
| 422 | std::cout << "--port -p Port number for the server" << std::endl; |
| 423 | std::cout << " -o Output path" << std::endl; |
| 424 | std::cout << "--help -h Print help" << std::endl; |
| 425 | std::cout << "--version Print version" << std::endl; |
| 426 | std::cout << "--intro Run the game intro" << std::endl; |
| 427 | std::cout << "--log_levels Comma separated list of log levels, applying a minus prefix" << std::endl; |
| 428 | std::cout << " removes the level from a group such as 'all', valid levels:" << std::endl; |
| 429 | std::cout << " - info, warning, error, verbose, all" << std::endl; |
| 430 | std::cout << " Example: --log_levels \"all, -verbose\", logs all but verbose levels" << std::endl; |
| 431 | std::cout << " Default: \"info, warning, error\"" << std::endl; |
| 432 | std::cout << "--all -a For compare, print out all divergences" << std::endl; |
| 433 | std::cout << "--locomotion_path Overrides the path to Locomotion install." << std::endl; |
| 434 | } |
| 435 | |
| 436 | std::optional<int> runCommandLineOnlyCommand(const CommandLineOptions& options) |
| 437 | { |
no outgoing calls
no test coverage detected