commandlineparser / commandlineparser/commandline

Possibility to turn off or customize version/help option

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

Description

**Issue by [ptylenda](https://github.com/ptylenda)**
_Monday Sep 19, 2016 at 14:43 GMT_
_Originally opened as https://github.com/gsscoder/commandline/issues/351_

----

It would be a good idea to make it possible to turn off (or at least customize) version and help options, probably via an attribute for the options class. This especially concerns version option - we are migrating from old custom parsers to the CommandLine library and we have noticed that it conflicts with our custom version option (-v, --version). This option is unrelated to version of an application, it concerns version of a file being processed by the executable. In our case it is not possible to use a different option name as we have to maintain 100% backward compatibility inside an enterprise system. Fortunately this "conflict" seems to be only visible in the help screen, when both our custom option and the default option are displayed at once.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by tracing where the built-in help and version options are registered and rendered, then examine how options-class attributes could control them. Done means an application can disable or customize those built-ins while retaining its own -v/--version option without a duplicate in the help screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.