go-flags
go-flags copied to clipboard
go command line option parser
The output produced by `WriteHelp` and `WriteManPage` is inconsistent, and in particular `WriteHelp` seems wrong, when a command provides `Usage()`. Given ```go package main import ( "fmt" "os" "github.com/jessevdk/go-flags" )...
This seems to be a really nice, comprehensive library, with lots of great features. As a non-Go programmer, it would have helped me to have had more examples to show...
This stems from of Marina Moore’s (@mnm678) excellent work on adding SOURCE_DATE_EPOCH for reproducible builds in PR #285, and has been extended by Jelmer Vernooij (@jelmer) such that TestMan in...
Parser struct has a useful method `WriteManPage()` that allows to generate a man page for command line arguments. I found this idea really handy. It would be great to add...
Currently documentation provides an example of completion for bash shell only. zsh is one of the popular shells. it would be great to have completion example for this shell as...
I have a positional argument ```go Args struct { Output string `positional-arg-name:"output" default:"foo.txt"` } `positional-args:"true"` ``` And `default` tag does not seem to work for it. It would be useful...
I see that 1.5.0 was tagged but a proper github release was never made, and so 1.4.0 instead of 1.5.0 is shown as the last one in the left-side column...
The following example: ``` type globalOpts struct { BoolFunc func(bool) `long:"bool-func" description:"..."` } ``` produces a help message like this: ``` Usage: example [OPTIONS] Application Options: --bool-func= ... ``` In...
I would like to be able to pass a value to a bool flag. I would like to be able to pass the value of the boolean like: ./my-program --my-flag=true...