Merge pull request #98 from skrobinson/wip-clean-ups

misc clean ups
This commit is contained in:
Pranav 2021-04-07 12:37:36 -05:00 committed by GitHub
commit 9e9d969814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 46 deletions

View File

@ -7,7 +7,8 @@
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2019 Pranav Srinivas Kumar <pranav.srinivas.kumar@gmail.com>.
Copyright (c) 2019-2021 Pranav Srinivas Kumar <pranav.srinivas.kumar@gmail.com>
and other contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -797,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 {