diff options
| author | aidanfnv <aidanf@nvidia.com> | 2025-07-11 14:57:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-11 21:57:38 +0000 |
| commit | 39f3c6c7701ed9d7edd5bfd8ee0adf99d2d658e0 (patch) | |
| tree | 41e0847c69c6439f145dee1e74b423c5fe3be0fe /source | |
| parent | 1dc32b8bf8dd14e607d306c160b1bedf46067910 (diff) | |
Use stdout for --help text instead of stderr (#7730)
* Use stdout for --help text instead of stderr
* format code (#13)
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-options.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index c532e91ae..749f1677a 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -2049,7 +2049,9 @@ SlangResult OptionsParser::_parseHelp(const CommandLineArg& arg) writer->appendDescriptionForCategory(m_cmdOptions, categoryIndex); } - m_sink->diagnoseRaw(Severity::Note, buf.getBuffer()); + // Write help text to stdout + FileWriter stdoutWriter(stdout, WriterFlag::IsUnowned); + stdoutWriter.write(buf.getBuffer(), buf.getLength()); return SLANG_OK; } |
