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

Allow to specify default value for a positional argument

Open anatol opened this issue 4 years ago • 0 comments

I have a positional argument

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 to allow to specify such default value.

anatol avatar Nov 01 '21 03:11 anatol