Kotlin / Kotlin/kotlinx-cli

Error messages should be sent to stderr instead of stdout.

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
951
Forks
71
PR merge metrics
No merged PRs in 30d

Description

If the supplied arguments aren't parseable and a usage message is output, it should go to stderr, not stdout. (Whereas if the user requested a usage message with the -help option, that should go to stdout.). This is standard behavior for command-line tools running in a POSIX environment.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the argument-parsing path that emits the usage message and the existing tests for -help and invalid arguments. Confirm the current output streams, then add coverage showing invalid input uses stderr while -help uses stdout; done means those tests pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.