commandlineparser / commandlineparser/commandline
Parameters based on condition
- Langage dominant
- C#
- Étoiles
- 4.8k
- Forks
- 478
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par examiner le point d’entrée de l’analyseur de ligne de commande pour l’option --onmatch et ses valeurs d’enum move, copy et ignore, puis lisez le fil de commentaires existant concernant les contraintes. Le travail est considéré comme terminé lorsqu’il est établi qu’un chemin requis conditionnellement est pris en charge et, si une implémentation est appropriée, que le comportement et la validation nécessaires pour les trois modes sont définis.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100