pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

Results 112 pflag issues
Sort by recently updated
recently updated
newest added

The previous check `len(arguments) < 0` was meaningless because the length of a slice cannot be negative. And format comments for better readability (automatic format)

When a single or series of asterisks (i.e. `*` or `***`) are passed as the values of string flags, `pflag` will return a file name within the current directory instead...

Currently when we use `-h` or `--help` flag to print help message, it would add additional `pflag: help requested` to the end of message; or when some other errors occurred,...

I know this repo is not seeing much activity but I figured I'd include this fix. Fixes #306

In ncw/rclone#506 a user is rightly complaining about the fact that two `--exclude` flags don't work in rclone and it didn't warn him. Could pflag return an error if you...

If a variable has a default value set, when using the variable, pass arguments to the parameter in the form of '--flag arg'. The default value will be overridden by...

This PR adds documentation around the special back-tick syntax in flag usage to override the variable name displayed in the help output. This functionality is implemented in the `UnquoteUsage` function,...

My attempt at a fix for #413 to not drop brackets at the end of the flag value.