13 CLI::App app{
"bb-avm-sim: Standalone AVM simulator server" };
14 app.require_subcommand(1);
19 CLI::App* msgpack_command = app.add_subcommand(
"msgpack",
"Msgpack API interface.");
22 CLI::App* msgpack_run_command = msgpack_command->add_subcommand(
"run",
"Start the AVM simulator IPC server.");
24 std::string input_path;
25 msgpack_run_command->add_option(
"-i,--input", input_path,
"IPC socket/shm path (.sock or .shm)")->required();
27 std::string wsdb_path;
28 msgpack_run_command->add_option(
"--wsdb", wsdb_path,
"WSDB server IPC path")->required();
31 msgpack_run_command->add_option(
"--cdb", cdb_path,
"CDB server IPC path")->required();
35 app.parse(argc, argv);
36 }
catch (
const CLI::ParseError& e) {
41 if (msgpack_run_command->parsed()) {
44 }
catch (
const std::exception& e) {
45 info(
"Error: ", e.what());