configure icon indicating copy to clipboard operation
configure copied to clipboard

Ignore non-config flags

Open MaKleSoft opened this issue 9 years ago • 1 comments

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.

MaKleSoft avatar Aug 13 '16 12:08 MaKleSoft

use two separate structs

I agree. I'm forced to break encapsulation between two unrelated packages due to this.

llorllale avatar Feb 27 '19 01:02 llorllale