argp: GNU-style command line argument parser for Go
https://github.com/tdewolff/argp
#HackerNews #argp #GNU #Go #parser #commandline #programming
argp: GNU-style command line argument parser for Go
https://github.com/tdewolff/argp
#HackerNews #argp #GNU #Go #parser #commandline #programming
Many years ago, I thought about making a thread .. regular posting, on "Secrets of the #GNU system" .. here is a small secret, a favourite of mine that we have is #argp, written by Miles Bader (RIP) some odd 20 years back now; it is a wrapper around getopt that stuffs much of the nonsense you need to meddle with into a structure. https://www.gnu.org/software/libc/manual/html_node/Argp.html
Ben Asselstine wrote a nice little book about argp: http://svn.savannah.gnu.org/viewvc/argpbook/trunk/