dotnet / dotnet/command-line-api
Add support for --no-option-options
- Vorherrschende Sprache
- C#
- Sterne
- 3.7k
- Forks
- 428
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Many *nix programs have options that follow this pattern:
```
--option=yes|no
--(no-)option
```
I know that one could easily just supply a boolean option, as shown, but often times an additional option is accepted that prefixes the main option name with `no-` to indicate the option should not be used/present.
It would be great to support that.
Another way this _might_ be supported is via custom option processing, such as adding an alias for `--no-option` and detecting the use of the alias, and then allowing for the customization of help to properly document the API.
Beitragsleitfaden
Rechercherichtung
Das Issue nennt keine Dateien oder Tests. Beginne damit, die Einstiegspunkte für die Analyse der Kommandozeilenoptionen und die Generierung der Hilfe nachzuverfolgen, und vergleiche dann die angeforderte Form --no-option mit vorhandenen booleschen Optionen und Aliasen. Erledigt ist die Aufgabe, wenn die Syntax wie vorgesehen geparst wird und der Hilfetext sowie die Tests das Verhalten abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100