commandlineparser/commandline

Send only the actual error to Console.Error

Offen

#184 geöffnet am 07.11.2017

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (461 Forks)batch import
help wanted

Repository-Metriken

Stars
 (4.280 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide