Add support for setting a function to handle flag parsing errors.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The default pflag error is to only print the bad flag. This enables an application to include a usage message or other details about the error.
authored by Daniel Nephin · committed by Daniel Nephin · parent 9c28e4b · Browse files · 3 files+55 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Diff stats
3 files+55 added−7 removed
- other:+55 added−7 removed