pkg/types: add IgnoreUnknown arg and logic
authorStefan Junker <mail@stefanjunker.de>
Thu, 17 Mar 2016 13:08:29 +0000 (14:08 +0100)
committerStefan Junker <mail@stefanjunker.de>
Mon, 21 Mar 2016 19:36:05 +0000 (20:36 +0100)
commitfc83c24eb5013f710b9495cc300ce2887e870601
treee198be801f559b9cbd2b1dcd60b89e4ca50ef689
parent8cc424c5aa959396f62489c152b7b280dc7d4e32
pkg/types: add IgnoreUnknown arg and logic

This commit adds a struct type CommonArgs that is to be embedded in
every plugin's argument struct. It contains a field named
"IgnoreUnknown" which will be parsed as a boolean and can be provided to
ignore unknown arguments passed to the plugin.
types/args.go