| 96 | } |
| 97 | |
| 98 | static bool writeErrorToString(const SC::CommandLineSpec& spec, const SC::CommandLineParseResult& parseResult, |
| 99 | SC::String& text) |
| 100 | { |
| 101 | SC::GrowableBuffer<SC::String> growable(text); |
| 102 | SC::StringFormatOutput output(SC::StringEncoding::Utf8, growable); |
| 103 | const bool result = spec.writeError(parseResult, output); |
| 104 | growable.finalize(); |
| 105 | return result; |
| 106 | } |
| 107 | } // namespace |
| 108 | |
| 109 | struct SC::CommandLineTest : public SC::TestCase |
no test coverage detected