ff icon indicating copy to clipboard operation
ff copied to clipboard

Flags-first package for configuration

Results 21 ff issues
Sort by recently updated
recently updated
newest added

Hi Peter, Great work as always. I find myself having to duplicate boilerplate to check for empty parameters. Can I propose that `ff.NewFlagSet` has some way of specifying that it...

I noticed when I had a field which implemented `flag.Value` and I registered it using `AddStruct` that the default wasn't being respected. This adds support this by wrapping the `flag.Value`...

Hi! I migrated to ff a good while ago but one thing that I really miss from our old solution is the possibility to have case sensitive short forms for...

In parse.go on [line 94](https://github.com/peterbourgon/ff/blob/4e42878b21c9c40090eca819d84310b572438766/parse.go#L94), environment variables are retrieved using `os.Getenv`. Unfortunately, `Getenv` returns an empty string if the environment variable doesn't exist. This creates an ambiguity because the parser...

Same cased short flags should be possible, but ErrDuplicateFlags is returned even when environment variable parsing is not requested. Do not check for duplicate folds if no env var is...

(First, thanks for ff.) I'm using v4, and I have some questions about how ff.FlagSets parse long flags that use `=`. After looking at the code, I'm not sure whether...

Consider the following: ```go package main import ( "context" "fmt" "os" "github.com/peterbourgon/ff/v4" "github.com/peterbourgon/ff/v4/ffhelp" ) const dsnDoc = `data source name to use for connecting to the database. sqlite and postgres...

Updating these two direct dependencies reduces the number of indirect dependencies to almost zero. The `gopkg.in/yaml.v2` module has moved to `go.yaml.in/yaml/v2` and is now maintained by the YAML organization on...