mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-05 23:54:43 +00:00
commit
9e9d969814
@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
||||||
SPDX-License-Identifier: 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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -797,9 +798,9 @@ private:
|
|||||||
[](const std::string &aValue) { return aValue; }};
|
[](const std::string &aValue) { return aValue; }};
|
||||||
std::vector<std::any> mValues;
|
std::vector<std::any> mValues;
|
||||||
int mNumArgs = 1;
|
int mNumArgs = 1;
|
||||||
bool mIsOptional : 1;
|
bool mIsOptional : true;
|
||||||
bool mIsRequired : 1;
|
bool mIsRequired : true;
|
||||||
bool mIsUsed : 1; // True if the optional argument is used by user
|
bool mIsUsed : true; // True if the optional argument is used by user
|
||||||
};
|
};
|
||||||
|
|
||||||
class ArgumentParser {
|
class ArgumentParser {
|
||||||
|
Loading…
Reference in New Issue
Block a user