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)?

贡献者指南