gocli is yet another package to aid with parsing command line arguments.
Unlike many other libraries, it focuses mainly on support of subcommands. Define as many subcommands as you want, they are handled by using FlagSets recursively. Simple yet powerful enough for many scenarios.
The help output format is inspired among others by codegangsta's cli library.
The API has been tagged with v1.0.0
, please use gopkg.in
to lock your dependencies.
import "gopkg.in/tchap/gocli.v2"
See app_test.go
.
MIT
, see the LICENSE
file.