commandlineparser / commandlineparser/commandline

Built in Help and Version output goes to stderr not stdout.

Open
#399 13 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

The built in --help and --version outputs are printed to stderr instead of stdout, you have to redirect them to use the commands properly.

`test --version` returns the version number, but on stderr not stdout.

e.g.
`test --version 2>nul` returns no output.
`test --version 2>&1` prints the version to stdout as expected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `test --version` and the equivalent `--help` command, checking stdout and stderr separately. Trace the built-in output handling from the command-line entry point, then add regression coverage showing both outputs go to stdout and remain usable without redirection.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.