github.com/jessevdk/go-flags

go-flags

Package flags provides an extensive command line option parser.

69

Decision Signals

Health score 69/100, confidence 80/100.

Review
Maintenance 45
Adoption 78
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/jessevdk/go-flags

Package Data

updated May 28, 2026
Latest versionv1.6.1
Imported by14.1K packages
Stars0
Forks0
Last activity1 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

141 symbols
SymbolKindSynopsis
Arg Type type Arg struct{ ... }
Arg.Description Field Description string
Arg.Name Field Name string
Arg.Required Field Required int
Arg.RequiredMaximum Field RequiredMaximum int
Command Type type Command struct{ ... }
Command.Active Field Active *Command
Command.AddCommand Method func (c *Command) AddCommand(command string, shortDescription string, longDescription string, ...) (*Command, error)
Command.AddGroup Method func (c *Command) AddGroup(shortDescription string, longDescription string, data interface{}) (*Group, error)
Command.Aliases Field Aliases []string
Command.Args Method func (c *Command) Args() []*Arg
Command.ArgsRequired Field ArgsRequired bool

Maintained Alternatives

limited recent repository activity

#1 fzf

:cherry_blossom: A command-line fuzzy finder

Go CLI Frameworks 80.6K stars 0 imported-by 100% confidence
94

#2 urfave/cli

Package cli provides a minimal framework for creating and organizing command line Go applications.

Go CLI Frameworks 24.1K stars 0 imported-by 80% confidence
91

#3 Cobra

Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.

Go CLI Frameworks 44.0K stars 0 imported-by 65% confidence
87

#4 dasel

Unified querying, transformation, and modification of JSON, TOML, YAML, XML, INI, HCL, KDL and CSV.

Go CLI Frameworks 8.0K stars 0 imported-by 45% confidence
85

#5 gommon/color

Formats and parses numeric byte values (10K, 2M, 3G, etc.).

Go CLI Frameworks 586 stars 1 imported-by 100% confidence
84

#6 hiboot cli

Package hiboot is a web/cli app application framework

Go CLI Frameworks 179 stars 0 imported-by 100% confidence
83

Similar Packages

Go CLI Frameworks

#1 fzf

:cherry_blossom: A command-line fuzzy finder

Go CLI Frameworks 80.6K stars 0 imported-by 100% confidence
94

#2 urfave/cli

Package cli provides a minimal framework for creating and organizing command line Go applications.

Go CLI Frameworks 24.1K stars 0 imported-by 80% confidence
91

#3 Cobra

Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.

Go CLI Frameworks 44.0K stars 0 imported-by 65% confidence
87

#4 dasel

Unified querying, transformation, and modification of JSON, TOML, YAML, XML, INI, HCL, KDL and CSV.

Go CLI Frameworks 8.0K stars 0 imported-by 45% confidence
85

#5 gommon/color

Formats and parses numeric byte values (10K, 2M, 3G, etc.).

Go CLI Frameworks 586 stars 1 imported-by 100% confidence
84