2 ms·
I very much like the subcommand paradigm git implements: mycmd <global args> subcommand <subcommand specific args> However, I haven't found a C++ library
by ur-whale 6y ago
I very much like the subcommand paradigm git implements:
mycmd <global args> subcommand <subcommand specific args>
However, I haven't found a C++ library that implements this properly with an easy-to-use API (and what I mean by easy to use is: specifying the structure of cmd line options should be easy and natural, and retrieving options specified by the user should be easy, and the "synopsis" part of the man page should be auto-generated).
If anyone knows of one, would love to hear about it.
- htfy96 6y agoHave you tried https://github.com/CLIUtils/CLI11 https://github.com/CLIUtils/CLI11 ? The subcommand example can be found at https://github.com/CLIUtils/CLI11/blob/master/examples/subcommands.cpp https://github.com/CLIUtils/CLI11/blob/master/examples/subco... . It can't generate man pages though