github.com/akamensky/argparse

argparse

Package argparse provides users with more flexible and configurable option for command line arguments parsing.

55

Decision Signals

Health score 55/100, confidence 80/100.

Caution
Maintenance 15
Adoption 56
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/akamensky/argparse

Package Data

updated May 31, 2026
Latest versionv1.4.0
Imported by788 packages
Stars0
Forks0
Last activity3 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

60 symbols
SymbolKindSynopsis
Arg Type type Arg interface{ ... }
Arg.GetLname Method GetLname func() string
Arg.GetOpts Method GetOpts func() *Options
Arg.GetParsed Method GetParsed func() bool
Arg.GetPositional Method GetPositional func() bool
Arg.GetResult Method GetResult func() interface{}
Arg.GetSname Method GetSname func() string
ArgumentType Type type ArgumentType int
Command Type type Command struct{ ... }
Command.ExitOnHelp Method func (o *Command) ExitOnHelp(b bool)
Command.File Method func (o *Command) File(short string, long string, flag int, perm os.FileMode, opts *Options) *os.File
Command.FileList Method func (o *Command) FileList(short string, long string, flag int, perm os.FileMode, opts *Options) *[]os.File

Maintained Alternatives

limited recent repository activity

#1 Cobra

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

Go CLI Frameworks 44.0K stars 195.9K imported-by 100% confidence
95

#2 urfave/cli

Simple, fast, and fun package for building command line apps in Go.

Go CLI Frameworks 24.1K stars 23.1K imported-by 65% confidence
94

#3 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

#4 kong

Package kong aims to support arbitrarily complex command-line structures with as little developer effort as possible.

Go CLI Frameworks 0 stars 3.1K imported-by 80% confidence
77

#5 go-arg

Package arg parses command line arguments using the fields from a struct.

Go CLI Frameworks 0 stars 1.7K imported-by 80% confidence
70

#6 flash-flags

Package flashflags provides ultra-fast, zero-dependency, lock-free command-line flag parsing for Go.

Go CLI Frameworks 0 stars 3 imported-by 80% confidence
67

Similar Packages

Go CLI Frameworks

#1 Cobra

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

Go CLI Frameworks 44.0K stars 195.9K imported-by 100% confidence
95

#2 urfave/cli

Simple, fast, and fun package for building command line apps in Go.

Go CLI Frameworks 24.1K stars 23.1K imported-by 65% confidence
94

#3 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

#4 kong

Package kong aims to support arbitrarily complex command-line structures with as little developer effort as possible.

Go CLI Frameworks 0 stars 3.1K imported-by 80% confidence
77

#5 go-arg

Package arg parses command line arguments using the fields from a struct.

Go CLI Frameworks 0 stars 1.7K imported-by 80% confidence
70