Versions in this module Expand all Collapse all v2 v2.0.1 Sep 27, 2021 v2.0.0 Jan 8, 2020 Changes in this version + var ErrUnparsed = errors.New("command tree is unparsed, can't run") + func DefaultUsageFunc(c *Command) string + type Command struct + Exec func(ctx context.Context, args []string) error + FlagSet *flag.FlagSet + LongHelp string + Name string + Options []ff.Option + ShortHelp string + ShortUsage string + Subcommands []*Command + UsageFunc func(c *Command) string + func (c *Command) Parse(args []string) error + func (c *Command) ParseAndRun(ctx context.Context, args []string) error + func (c *Command) Run(ctx context.Context) (err error) Other modules containing this package github.com/peterbourgon/ff github.com/peterbourgon/ff/v3