Home
Argo is a minimalist Go library for parsing command line arguments.
Features
-
Long-form boolean flags with single-character shortcuts:
--flag
,-f
. -
Long-form string, integer, and floating-point options with
single-character shortcuts:
--option <arg>
,-o <arg>
. -
Condensed short-form options:
-abc <arg> <arg>
. -
Automatic
--help
and--version
flags. - Support for multivalued options.
- Support for git-style command interfaces with arbitrarily-nested commands.
Installation
Install the argo
package:
go get github.com/dmulholl/argo/v4
Import the argo
package:
import "github.com/dmulholl/argo/v4"
Links
License
Zero-Clause BSD (0BSD).