| 446 | } |
| 447 | |
| 448 | static void printProgramUsage(const char* name) { |
| 449 | printf("FoundationDB CLI " FDB_VT_PACKAGE_NAME " (v" FDB_VT_VERSION ")\n" |
| 450 | "usage: %s [OPTIONS]\n" |
| 451 | "\n", |
| 452 | name); |
| 453 | printf(" -C CONNFILE The path of a file containing the connection string for the\n" |
| 454 | " FoundationDB cluster. The default is first the value of the\n" |
| 455 | " FDB_CLUSTER_FILE environment variable, then `./fdb.cluster',\n" |
| 456 | " then `%s'.\n", |
| 457 | platform::getDefaultClusterFilePath().c_str()); |
| 458 | printf(" --log Enables trace file logging for the CLI session.\n" |
| 459 | " --log-dir PATH Specifes the output directory for trace files. If\n" |
| 460 | " unspecified, defaults to the current directory. Has\n" |
| 461 | " no effect unless --log is specified.\n" |
| 462 | " --log-group LOG_GROUP\n" |
| 463 | " Sets the LogGroup field with the specified value for all\n" |
| 464 | " events in the trace output (defaults to `default').\n" |
| 465 | " --trace-format FORMAT\n" |
| 466 | " Select the format of the log files. xml (the default) and json\n" |
| 467 | " are supported. Has no effect unless --log is specified.\n" |
| 468 | " --exec CMDS Immediately executes the semicolon separated CLI commands\n" |
| 469 | " and then exits.\n" |
| 470 | " --no-status Disables the initial status check done when starting\n" |
| 471 | " the CLI.\n" |
| 472 | " --api-version APIVERSION\n" |
| 473 | " Specifies the version of the API for the CLI to use.\n" TLS_HELP |
| 474 | " --knob-KNOBNAME KNOBVALUE\n" |
| 475 | " Changes a knob option. KNOBNAME should be lowercase.\n" |
| 476 | " --debug-tls Prints the TLS configuration and certificate chain, then exits.\n" |
| 477 | " Useful in reporting and diagnosing TLS issues.\n" |
| 478 | " --build-flags Print build information and exit.\n" |
| 479 | " --memory Resident memory limit of the CLI (defaults to 8GiB).\n" |
| 480 | " --use-future-protocol-version\n" |
| 481 | " Use the simulated future protocol version to connect to the cluster.\n" |
| 482 | " This option can be used testing purposes only!\n" |
| 483 | " -v, --version Print FoundationDB CLI version information and exit.\n" |
| 484 | " -h, --help Display this help and exit.\n"); |
| 485 | } |
| 486 | |
| 487 | #define ESCAPINGK "\n\nFor information on escaping keys, type `help escaping'." |
| 488 | #define ESCAPINGKV "\n\nFor information on escaping keys and values, type `help escaping'." |
no test coverage detected