cmdline
cmdline copied to clipboard
A Command Line Parser
my example code is follow: ’‘’ cmdline::parser parser; parser.add("loglevel", 'l', "0-critical, 1-err, 2-warn, 3-info, 4-debug, 5-trace", false, 1); parser.parse_check("--loglevel"); auto t = parser.get("loglevel"); std::cout
There is a small typo in README.rst. Should read `manually` rather than `mannually`. Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md
Hello Tanakh, When I enter `./a.out -?`, the zsh tell me `zsh: no matches found: -?` That make me think that `-h` is better than `-?`, so maybe it is...
cmdline appears to have some intrinsic limitation to the number of arguments it can process. I get ``` $ ./a.out Segmentation fault (core dumped) ``` with the following test program...
This builtin macro conflicts with the function template `std::max()`
This pull request removes shadowing variable names in the cmdline include file that show up in G++ with -Wshadow.
MSVC doesn't supports header `#include `, so i just put it under `ifdef`
In the current implementation, `#oneof` cannot accepts more than 10 arguments. Using variadic templates of C++11 can solve this problem.
when i compiled cmdline in vs2016, i got the following error ``` bash 1>cmdline.h(586) : error C2589: '(' : illegal token on right side of '::' 1>cmdline.h(586) : error C2143:...