You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That way it meets everyone's expectations and costs nothing in complexity (though sometimes help may need to come after some sort of flag package has parsed all the things... or just `long string` it.
The text was updated successfully, but these errors were encountered:
Cobra would let us generate man pages and whatnot which help with packaging. It's also a nicer API to write against. It's a slim dependency now (compared to a couple years ago which necessitated https://github.com/spf13/viper) so IMO no harm bringing it in to make UX easier and more consistent in addition to the extra features it provides.
I'd be be just as happy if the first version of the help did nothing more than print the URL to this repo's README, however, it shouldn't fail.
Personally, I often sidestep the flag parser and have POSIX, BSD, and Go-style for help and version, like this:
That way it meets everyone's expectations and costs nothing in complexity (though sometimes
help
may need to come after some sort of flag package has parsed all the things... or just`long string`
it.The text was updated successfully, but these errors were encountered: