so, I think, that you need to search for custom flag parsers like this: https://github.com/cosiner/flag