commandlineparser / commandlineparser/commandline

Send only the actual error to Console.Error

Open
#184 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 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`)?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read src/CommandLine/Parser.cs around line 199 and trace how help text and errors are written to the console. The change is complete when only the actual error goes to Console.Error, while the help text before and after it goes to Console.Out.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.