Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hritik14 opened this issue Mar 10, 2025 · 0 comments
Open

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

Hritik14 opened this issue Mar 10, 2025 · 0 comments

Comments

@Hritik14
Copy link
Contributor

Hritik14 commented Mar 10, 2025

	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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant