Commit f221269db0210f29ee106ec27a08eac47fd55f4f
1 parent
b7dad99d
Added note on GetOpt
Showing
1 changed file
with
3 additions
and
0 deletions
README.md
| @@ -36,6 +36,7 @@ The major CLI parsers for C++ include: | @@ -36,6 +36,7 @@ The major CLI parsers for C++ include: | ||
| 36 | * [Cxxopts]: C++11, single file, and nice CMake support, but requires regex, therefore GCC 4.8 (CentOS 7 default) does not work. Syntax closely based on Boost PO, so not ideal but familiar. | 36 | * [Cxxopts]: C++11, single file, and nice CMake support, but requires regex, therefore GCC 4.8 (CentOS 7 default) does not work. Syntax closely based on Boost PO, so not ideal but familiar. |
| 37 | * [DocOpt]: Completely different approach to program options in C++11, you write the docs and the interface is generated. Too fragile and specialized. | 37 | * [DocOpt]: Completely different approach to program options in C++11, you write the docs and the interface is generated. Too fragile and specialized. |
| 38 | * [GFlags]: The Google Commandline Flags library. Uses macros heavily, and is limited in scope, missing things like subcommands. It provides a simple syntax and supports config files/env vars. | 38 | * [GFlags]: The Google Commandline Flags library. Uses macros heavily, and is limited in scope, missing things like subcommands. It provides a simple syntax and supports config files/env vars. |
| 39 | +* [GetOpt]: Very limited C solution with long, convoluted syntax. Does not support much of anything, like help generation. Always available on UNIX, though (but in different flavors). | ||
| 39 | 40 | ||
| 40 | So, this library was designed to provide a great syntax, good compiler compatibility, and minimal installation fuss. | 41 | So, this library was designed to provide a great syntax, good compiler compatibility, and minimal installation fuss. |
| 41 | 42 | ||
| @@ -301,3 +302,5 @@ This will print help in blue, errors in red, and will reset before returning the | @@ -301,3 +302,5 @@ This will print help in blue, errors in red, and will reset before returning the | ||
| 301 | [ROOT]: https://root.cern.ch | 302 | [ROOT]: https://root.cern.ch |
| 302 | [cltools-cmake]: https://github.com/CLIUtils/cmake | 303 | [cltools-cmake]: https://github.com/CLIUtils/cmake |
| 303 | [GFlags]: https://gflags.github.io/gflags | 304 | [GFlags]: https://gflags.github.io/gflags |
| 305 | +[GetOpt]: https://www.gnu.org/software/libc/manual/html_node/Getopt.html | ||
| 306 | + |