mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Replace integers with bool value keywords
While the implicit conversions from `1` to `true` work correctly, this avoids the conversions. Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
parent
a711f26045
commit
0fe17e22f6
@ -798,9 +798,9 @@ private:
|
||||
[](const std::string &aValue) { return aValue; }};
|
||||
std::vector<std::any> mValues;
|
||||
int mNumArgs = 1;
|
||||
bool mIsOptional : 1;
|
||||
bool mIsRequired : 1;
|
||||
bool mIsUsed : 1; // True if the optional argument is used by user
|
||||
bool mIsOptional : true;
|
||||
bool mIsRequired : true;
|
||||
bool mIsUsed : true; // True if the optional argument is used by user
|
||||
};
|
||||
|
||||
class ArgumentParser {
|
||||
|
Loading…
Reference in New Issue
Block a user