12 #include <mrpt/3rdparty/tclap/CmdLine.h> 22 TCLAP::CmdLine
cmd{
"mvsim",
' ',
"version",
false };
24 TCLAP::UnlabeledMultiArg<std::string>
argCmd{
25 "command",
"Command to run. Run 'mvsim help' to list commands.",
false,
29 "v",
"verbose",
"Verbosity level",
30 false,
"INFO",
"ERROR|WARN|INFO|DEBUG",
35 "Enable saving *all* timing data, dumping it to a file at the end of " 41 "",
"headless",
"Runs the simulator without any GUI window.",
cmd};
44 "",
"details",
"Shows details in the specified subcommand",
cmd};
47 "",
"version",
"Shows program version and exits",
cmd};
50 "h",
"help",
"Shows more detailed help for command",
cmd};
55 "TCP port to listen at",
64 "Realtime modification factor: <1 slower than real-time, >1 faster " 72 extern std::unique_ptr<cli_flags>
cli;
74 using cmd_t = std::function<int(void)>;
TCLAP::SwitchArg argHeadless
TCLAP::ValueArg< double > argRealTimeFactor
TCLAP::SwitchArg argDetails
std::function< int(void)> cmd_t
TCLAP::SwitchArg argFullProfiler
TCLAP::SwitchArg argVersion
void setConsoleNormalColor()
std::unique_ptr< cli_flags > cli
TCLAP::ValueArg< std::string > argVerbosity
TCLAP::ValueArg< int > argPort
constexpr unsigned int MVSIM_PORTNO_MAIN_REP
TCLAP::UnlabeledMultiArg< std::string > argCmd
void setConsoleErrorColor()
void commonLaunchServer()
int launchStandAloneServer()