commandlineparser / commandlineparser/commandline

Is it possible to add -h, -v to --help, --version?

Open
#585 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

I would like to make my app behave consistently and add the short variants ala, -v, --version and -h, --help to trigger the built-in AutoVersion and AutoHelp; is this possible? How would one accomplish that?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the built-in AutoVersion and AutoHelp options are registered and invoked in the command-line parser. Check whether short aliases can be configured for the existing --version and --help options, and verify the expected -v and -h behavior with the relevant parser tests. Done means the requested aliases work consistently or the supported configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.