by dashwav · 6y ago · 0 comments
Large projects like Hugo and Kubernetes have used Cobra to build their CLI tools, and it's fairly light as well even if you need simpler usage. We use it at my workplace simply for wrapping our microservices and the few commands (serve, migrate, etc)
https://pkg.go.dev/github.com/peterbourgon/ff/v3/ffcli is one that I've been using recently, which has been a lot nicer.
2: https://github.com/airlift/airline
Bonus: picocli lets you create native images using Graal, so you can really build native cli executable using Java.
I’ve struggled to find a well-supported command-line argument parser that supports subcommands.