| 103 | } |
| 104 | |
| 105 | std::string printHelp() { |
| 106 | std::stringstream out; |
| 107 | out << "Usage: esmb-cli function [input] output" << std::endl << std::endl; |
| 108 | out << "Available functions:" << std::endl; |
| 109 | |
| 110 | bool started = false; |
| 111 | for (auto cmd : esmb::Image::FunctionMap) { |
| 112 | if (started) out << ", "; |
| 113 | out << cmd.first; |
| 114 | started = true; |
| 115 | } |
| 116 | for (auto cmd : esmb::Image::NoInputFunctionMap) { |
| 117 | if (started) out << ", "; |
| 118 | out << cmd.first; |
| 119 | started = true; |
| 120 | } |
| 121 | out << std::endl; |
| 122 | |
| 123 | return out.str(); |
| 124 | } |
| 125 | |
| 126 | int main(int argc, char *argv[]) { |
| 127 | Args args = parseArguments(argc, argv); |