commandlineparser/commandline

Send only the actual error to Console.Error

開放

#184 建立於 2017年11月7日

 (2 則留言) (0 個反應) (0 位負責人)C# (461 個分叉)batch import
help wanted

倉庫指標

星標
 (4,280 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Currently all generated help text is sent to stderr (Console.Error) when an error occurs: https://github.com/commandlineparser/commandline/blob/7aa501d534a657c388f94f66127b4f8dde64ac59/src/CommandLine/Parser.cs#L199

Wouldn't it make more sense to only send the actual error there, and send the rest of the help text (both before and after) to stdout (Console.Out)?

貢獻者指南