commandlineparser / commandlineparser/commandline

Parameters based on condition

未关闭
#788 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
4.8k
派生
478
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。