nowfound

Life & fun · July 27, 2018

A more idiomatic flags package for subcommands in Go

A more idiomatic flags package for subcommands in Go launched on July 27, 2018 with 5 votes, #1,262 of 2,673 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 8 years on.

What it does

Today, I am happy to announce flaggy as stable for production use. Flaggy was originally built out of frustrations with all other flag packages available today. There are a lot of flag packages out there, but missing features, lack of subcommand support, and strange hard-to-remember patterns are all too common. Flaggy is new, but has been polished and tested extensively. I think you’re going to like it. Most people use Cobra when they want subcommands and robust flag support, but that imposes an entire package structure on your project. Your main ends up as a tiny program that calls a variety of specially crafted packages . I brought this up as an issue and despite getting a few…from ericgreer.info

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, July 2018

the whole month →