https://github.com/cattlecloud/babycli
babycli implements declarative parsing of command line arguments including support for subcommands, command aliases, long and short flag names, repeated flags, and custom help messages for Go
https://github.com/cattlecloud/babycli
cli command-line commands declarative flags golang parser subcommands
Last synced: about 1 month ago
JSON representation
babycli implements declarative parsing of command line arguments including support for subcommands, command aliases, long and short flag names, repeated flags, and custom help messages for Go
- Host: GitHub
- URL: https://github.com/cattlecloud/babycli
- Owner: cattlecloud
- License: bsd-3-clause
- Created: 2024-07-13T18:39:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-01T10:28:20.000Z (4 months ago)
- Last Synced: 2025-12-03T22:16:52.135Z (4 months ago)
- Topics: cli, command-line, commands, declarative, flags, golang, parser, subcommands
- Language: Go
- Homepage: https://cattlecloud.net/go/babycli
- Size: 52.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babycli
[](https://pkg.go.dev/cattlecloud.net/go/babycli)
[](https://github.com/cattlecloud/babycli/blob/main/LICENSE)
[](https://github.com/cattlecloud/babycli/actions/workflows/ci.yaml)
`babycli` is a modern CLI arguments parser for Go.
### Requirements
The minimum Go version is `go1.23`.
### Getting Started
The `babycli` package can be added to a project with `go get`.
```shell
go get cattlecloud.net/go/babycli@latest
```
```go
import "cattlecloud.net/go/babycli"
```
### Influence
This library was made after many projects of using [urfave/cli](https://github.com/urfave/cli),
one of the better command line parser libraries for Go. `babycli` models itself
after this library but with a cleaner, more robust implementation under the hood.
Credit of inspiration belongs to the authors.
### Experimental
(!) Please note this library is still experimental and being worked on, with
breaking changes being very likely.
### License
The `cattlecloud.net/go/babycli` module is open source under the [BSD](LICENSE) license.