go-flags
go-flags copied to clipboard
go command line option parser
A simple use case might be that you want a flag to have the value of `os.UserCacheDir()` and don't want to replicate its logic and/or deal with per-platform structs. I...
Hi, I'm sharing this work-in-progress code to see if this is something you would be willing to merge. So far, most of the code works, but I would need some...
Sensible/sane default values are likely to change on different OSes/platforms (e.g. Windows vs. Linux), environments/contexts (normal user vs. root), and so forth. It would be nice if there was some...
Hi. Thanks for the library, it's great, we've been using it for a long time. It would be cool to have native support for time.Duration. This will allow you to...
This PR adds missing `key-value-delimiter` (#392) description in doc comments.
In our application, we want to walk the subcommand hierarchy and test the actual instance type of certain activated subcommands, in order to preconfigure the application in various ways based...
It would be a huge burden lift if one was able to parse stdlib `net.*` and `net/netip.*` types as arguments without needing to either create a wrapper `flags.Unmarshaler` type every...
Running the `example/main.go` program with a `-h` flag yields to exit status 1, while it should actually be 0 due to the "benign" nature of the error. Just to be...
[encoding.TextUnmarshaler](https://pkg.go.dev/encoding#TextUnmarshaler) is the interface implemented by an object that can unmarshal a textual representation of itself. With it go-flags would be able to handle any type that implements it. Now...
Currently, help text wrapping is always enabled. If the terminal width can be obtained via `ioctl`, wrapping is done to the screen width; otherwise, it wraps at 80 characters. However,...