dotnet / dotnet/command-line-api

Library has odd behavior if a user defined version flag is specified

Aperta
#2,755 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
C#
Stelle
3.7k
Fork
428
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Was converting an old app that had a --version flag to System.CommandLine. It seems that there's also a --version flag integrated into System.CommandLine, which was taking precedence. System.CommandLine should error if one of the specified root options interferes with one of the built in options.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the reported behavior in a System.CommandLine app that defines a root --version option, then trace the code that registers and resolves built-in options. Done means the library reports an error when a user-defined root option conflicts with a built-in option, with coverage for the --version case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.