Hi
Here is some unsolicited feeback.
In general, when one is developing, it is always convenient to be able to print out the state of an object. I think you should have a simple parser::print(std::ostream&) function which prints all option name:value pairs as well as all non-options arguments in a nicely formated, easy to read way. You can never go wrong with a feature like that.
Also, for printing the help, I don't really like the syntax you have have chosen:
std::cout << parser << std::endl;
I think a parser::print_help(std::ostream&) member has better semantics. From the above syntax it is unclear just what exactly is being printed.
Thanks, Peter
Hi
Here is some unsolicited feeback.
In general, when one is developing, it is always convenient to be able to print out the state of an object. I think you should have a simple parser::print(std::ostream&) function which prints all option name:value pairs as well as all non-options arguments in a nicely formated, easy to read way. You can never go wrong with a feature like that.
Also, for printing the help, I don't really like the syntax you have have chosen:
std::cout << parser << std::endl;
I think a parser::print_help(std::ostream&) member has better semantics. From the above syntax it is unclear just what exactly is being printed.
Thanks, Peter