commandlineparser / commandlineparser/commandline

Parameters based on condition

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

Description

Hi,
I would to know if it's possibile to configure this kind of commands:
```
--onmatch move "c:\destination\path"
--onmatch copy "c:\destination\path"
--onmatch ignore
```

I mean, if with _onmatch_ parameter I specify the enum _move_ or _copy_, then I also need to fill a **required** _path_ parameter.
On _ignore_, do nothing...

I know I could reach the goal changing the commands as:
```
--onmatchcopyto "c:\destination\path"
--onmatchmoveto "c:\destination\path"
```

in mutual exclusion, but I would to know if it's possibile to implement as in the first example.
#
Tnx,
Giovanni

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.