| 87 | }; |
| 88 | |
| 89 | static bool writeHelpToString(const SC::CommandLineSpec& spec, SC::String& text) |
| 90 | { |
| 91 | SC::GrowableBuffer<SC::String> growable(text); |
| 92 | SC::StringFormatOutput output(SC::StringEncoding::Utf8, growable); |
| 93 | const bool result = spec.writeHelp(output); |
| 94 | growable.finalize(); |
| 95 | return result; |
| 96 | } |
| 97 | |
| 98 | static bool writeErrorToString(const SC::CommandLineSpec& spec, const SC::CommandLineParseResult& parseResult, |
| 99 | SC::String& text) |
no test coverage detected