commandlineparser / commandlineparser/commandline

How to avoid any values ?

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

Description

Hello

I have a console program to create, and I have only options.
How can I do to raise an error and display help when I have some values instead of options ?

Example :
```
MyProgram --option1 --> is ok
MyProgram value1 --> I have to inform user that no values are allowed (and display help)
```

Thanks for advance.
Sybaris

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named in the issue. Start by locating how positional values are handled; done means determining whether extra values are rejected with an error and help displayed.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.