Skip to content
New issue

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

Added support for binary notation, e.g., 0b101 #306

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

p-ranav
Copy link
Owner

@p-ranav p-ranav commented Nov 6, 2023

Usage

argparse::ArgumentParser program("test");
program.add_argument("-n").scan<'b', uint8_t>();

program.parse_args({"test", "-n", "0b101"});
REQUIRE(program.get<T>("-n") == 0b101);

@p-ranav p-ranav self-assigned this Nov 6, 2023
@p-ranav p-ranav merged commit af442b4 into master Nov 6, 2023
8 checks passed
@p-ranav p-ranav deleted the feature/binary_number_parsing branch November 6, 2023 01:15
@p-ranav p-ranav mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant