+
Skip to content

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

Open
@Hritik14

Description

@Hritik14
	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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载