We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argparse::ArgumentParser args("Demo"); args.add_argument("--arg").help("Some string arg").required().default_value("bug alert");
Fix:
argparse::ArgumentParser args("Demo"); args.add_argument("--arg").help("Some string arg").required().default_value(std::string("ok"));
Maybe default_value() should have an overload for const char* which automatically converts to std::string
default_value()
const char*
std::string
The text was updated successfully, but these errors were encountered:
Fix crash with char[] default values
cb3da17
Closes p-ranav#249 Reported-by: @pfeatherstone Signed-off-by: Sean Robinson <[email protected]>
Thank you for your report. I tried a couple approaches, but I think your idea for a fix is the better option.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Fix:
Maybe
default_value()
should have an overload forconst char*
which automatically converts tostd::string
The text was updated successfully, but these errors were encountered: