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

Alternative FlagSet implementations such as https://github.com/spf13/pflag allow for different styles of flags. If ff and ffcli used a minimal interface with only the functions they call, in place of flag.FlagSet,...

Hello @peterbourgon, Consider the help output of a program with subcommands: ``` $ xprog -h USAGE xprog [flags] ... SUBCOMMANDS ssh upload and run the test binary via SSH passthrough...

I often find myself repeating code like this: ```go var verbose bool func init() { all := []*flag.FlagSet{ /* list of FlagSets for different sub-commands and sub-sub-commands */ } for...

Usage messages should include the names and flags for all commands from the root to the terminal command. Previously usage functions could only access the terminal command's data, which made...

Run the program below (or on the [playground](https://play.golang.org/p/_e_VqwPo-s7)) to see an example of the problem. ```go package main import ( "flag" "github.com/peterbourgon/ff/v3/ffcli" ) func main() { barfs := flag.NewFlagSet("bar", flag.ContinueOnError)...

Is there a good strategy for doing something like this? In the example: https://github.com/peterbourgon/ff/blob/main/ffcli/examples/objectctl/pkg/createcmd/create.go allowing the `--overwrite` flag to come at the end of the line: `objectctl create --overwrite`. `kubectl`...

While experimenting with `v4.0.0-alpha.4` for a toy project, I noticed that flags located after any positional argument were ignored during parsing. The issue can be reproduced with the `objectctl` example...

We are encountering an issue where we are unable to dynamically parse arrays of objects from a YAML configuration file. Example YAML Configuration: ``` push: fcm: - name: "app1" project-id:...

I started building out some tab completion for the `tailscale` CLI based on v3 in https://github.com/tailscale/tailscale/pull/11336. As mentioned, it's using the shell scripts that Cobra uses, so the implementation style...

Add helper functions to avoid repeating the `0` and/or `""` in the case of `Var` flagset method calls.