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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.