3 ms·
Sigh. util-linux's getopt solved this years and years ago. https://manpages.debian.org/testing/util-linux/getopt.1.en.html https://manpages.debian.org/testing/
by sacnoradhq 4y ago
Sigh. util-linux's getopt solved this years and years ago.
https://manpages.debian.org/testing/util-linux/getopt.1.en.html https://manpages.debian.org/testing/util-linux/getopt.1.en.h...
- tpmoney 4y agoNothing about that indicates that it can generate argument parsing from the help text. The whole point of the docopt stuff is that you write the help doc string that you're almost certainly going to write anyway, and it generates the argument parsing stuff for you.