MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / printUsage

Function printUsage

tools/bt_nodes_model.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <vector>
24
25void printUsage(const char* program_name)
26{
27 std::printf("Usage: %s [OPTIONS]\n\n", program_name);
28 std::printf("Generate TreeNodesModel XML for BehaviorTree.CPP nodes.\n\n");
29 std::printf("Options:\n");
30 std::printf(" --include-builtin Include builtin nodes in the output\n");
31 std::printf(" --plugin <path> Load a plugin from the specified path\n");
32 std::printf(" (can be specified multiple times)\n");
33 std::printf(" -h, --help Show this help message\n\n");
34 std::printf("Examples:\n");
35 std::printf(" %s --include-builtin\n", program_name);
36 std::printf(" %s --plugin ./libmy_nodes.so\n", program_name);
37 std::printf(" %s --include-builtin --plugin ./libplugin1.so --plugin "
38 "./libplugin2.so\n",
39 program_name);
40}
41
42int main(int argc, char* argv[])
43{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected