| 147 | } |
| 148 | |
| 149 | void showProfiles(const std::string& command, |
| 150 | const std::map<std::string, const ConfigProto*>& profiles) |
| 151 | { |
| 152 | std::cout << "syntax: fluxengine " << command |
| 153 | << " <profile> [<extensions...>] [<options>...]\n" |
| 154 | "Use --help for option help.\n" |
| 155 | "Available profiles include:\n"; |
| 156 | |
| 157 | for (const auto& it : profiles) |
| 158 | { |
| 159 | const auto& c = *it.second; |
| 160 | if (!c.is_extension()) |
| 161 | std::cout << fmt::format(" {}: {}\n", it.first, c.shortname()); |
| 162 | } |
| 163 | |
| 164 | std::cout << "Available profile options include:\n"; |
| 165 | |
| 166 | for (const auto& it : profiles) |
| 167 | { |
| 168 | const auto& c = *it.second; |
| 169 | if (c.is_extension() && (it.first[0] != '_')) |
| 170 | std::cout << fmt::format(" {}: {}\n", it.first, c.comment()); |
| 171 | } |
| 172 | |
| 173 | std::cout << "Profiles and extensions may also be textpb files .\n"; |
| 174 | exit(1); |
| 175 | } |
| 176 | |
| 177 | int main(int argc, const char* argv[]) |
| 178 | { |
no outgoing calls
no test coverage detected