Printout the full help string on error (if this fn is set, the old default for CLI11)
| 7478 | |
| 7479 | /// Printout the full help string on error (if this fn is set, the old default for CLI11) |
| 7480 | inline std::string help(const App *app, const Error &e) { |
| 7481 | std::string header = std::string("ERROR: ") + e.get_name() + ": " + e.what() + "\n"; |
| 7482 | header += app->help(); |
| 7483 | return header; |
| 7484 | } |
| 7485 | |
| 7486 | } // namespace FailureMessage |
| 7487 |