| 23 | #include <vector> |
| 24 | |
| 25 | void 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 | |
| 42 | int main(int argc, char* argv[]) |
| 43 | { |