| 36 | using std::runtime_error; |
| 37 | |
| 38 | static string paramError(const char* generator = nullptr, const char* perGenerator = nullptr) |
| 39 | { |
| 40 | string text = "Invalid command line parameters. Required format: inputFile "; |
| 41 | text += generator ? generator : "outFormat (one of c-header, c-impl, c++, pascal)"; |
| 42 | text += " outputFile"; |
| 43 | if (perGenerator) |
| 44 | { |
| 45 | text += " "; |
| 46 | text += perGenerator; |
| 47 | } |
| 48 | |
| 49 | return text; |
| 50 | } |
| 51 | |
| 52 | //-------------------------------------- |
| 53 |