go-flags icon indicating copy to clipboard operation
go-flags copied to clipboard

go command line option parser

Results 70 go-flags issues
Sort by recently updated
recently updated
newest added

Is this an abandoned project, since 2018? as such an important feature (#264) has been broken for over 3 years. I should have checked _all_ the issues, most importantly #264,...

help format default posix in windows, I don't want to use -tags=forceposix, let them use -tags=forcewindows

It seems there is a medium level problem The current golang.org/x/sys version in go.mod is v0.0.0-20210320140829-1e4c9ba3b0c4 This problem already be fixed in version 0.0.0-20220412211240-33da011f77ad Please help this, thank you

When AllowBoolValues Option is given, allow passing a true/false value to a boolean. This is useful when a user is calling a program from a shell script and wishes to...

(This is related to #306 and #361, I think, but arguably a separate issue) It is extremely unclear how to correctly handle error return codes from the `Parse` functions. Most...

Prior to this, description had to be set for environment variable information to be printed.

I encountered a problem: Some errors, like Usage, are directly outputting data on the standard output when some others, like "Please specify the [...] command" aren't. Could the list of...

If you'd like a little help when creating your `go-flags` based command line tools, take a look at https://github.com/suntong/lang/tree/master/lang/Go/src/sys/go-flags/wireframed which illustrates Go code being automatically generated.

Currently, environment variables beat command line arguments. It would be nice to be able to reverse this behavior with an option. ``` env: the default value of the option is...

I've glimpsed through the help doc and it seems that there is no way to provide "program description", i.e., what the program is, what it does etc in the output...