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
I want to parse special flags that begins with a dash and contains a single digit to mean compression levels for my zip like compression tool.
Right now I need to handle this with a special check inside a callback for positional arguments.
I would like to have something like:
opts.add_flag_fallback("-<digit>", [&](const char d) { compressionLevel = d - '0'; }, "Set compression level (0-9)");
The text was updated successfully, but these errors were encountered:
I'm thinking this could be a special type of add:
app.add_digit(Optional int value, "description");
Sorry, something went wrong.
This is now possible!
No branches or pull requests
I want to parse special flags that begins with a dash and contains a single digit to mean compression levels for my zip like compression tool.
Right now I need to handle this with a special check inside a callback for positional arguments.
I would like to have something like:
The text was updated successfully, but these errors were encountered: