alecthomas / alecthomas/kong

When `parser.Parse()` fails, `kong.Configuration` is also not loaded

Aperta
#509 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
3.2k
Fork
188
Merge medio
1g 1h
PR unite (30g)
2

Descrizione

```go
var cli CLI
parser, err := kong.New(&cli, kong.Configuration(kongyaml.Loader, configFiles...))
parser.Parse("this will not parse")
```

after this wouldn't it make sense that ``cli`` at least contains values defined in the config file even if cli input had errors ?

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.