commandlineparser/commandline

Send only the actual error to Console.Error

Aberta

#184 aberto em 7 de nov. de 2017

 (2 comentários) (0 reação) (0 responsável)C# (461 forks)batch import
help wanted

Métricas do repositório

Stars
 (4.280 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador