Hacker News new | ask | show | jobs
by GeneralMayhem 816 days ago
I use https://github.com/spf13/cobra religiously for this kind of thing - it handles all the annoying corner cases of parsing flags, and also has an intuitive notion of subcommands (with basic usage/help text generated) for picking which task you want to run with positional arguments.
1 comments

I'll have to mess with it and see. It looks like it could make the general CLI ux better :)