commandlineparser / commandlineparser/commandline

Usage of `dotnet tools` on assemblies with CommandLineParser results in unexpected output

Aperta
#931 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I was trying to add **CommandLineParser** to a _asp.net core_ project of mine to conditionally apply seed and test data on runs.

If I run any sort of tool on the assembly I get output from the Parser.

F.e. `dotnet ef migrations list`

```
ERROR(S):
Option 'applicationName' is unknown.

-s, --seed Seed required data.

-t, --test Seed data for dev and testing purposes.

-a, --auth Seed auth data.

--help Display this help screen.

--version Display version information.
```

I'm assuming that the tools themselves are passing these options or something along the line. Everything seems to work properly, but is this something other people have dealt with in some way?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.