Skip to content

print() feature request #6

Description

@peterritter

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions