Skip to content

Ignore non-config flags #18

@MaKleSoft

Description

@MaKleSoft

Currently if I use configure.ParseCommandLine(config, os.Args[1:]) and run the program with a flag not declared in my config struct I get the error unknown long flag '--my-flag'. This obviously causes problems in case I want to support other flags apart from the ones declared in my config struct or even just use two separate structs. Therefore, I think it would be better if undeclared flags would simply be ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions