1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

ArgsParser: Add support for Optional<size_t>

This commit is contained in:
brapru 2022-02-17 06:05:16 -05:00 committed by Tim Flynn
parent beb29c48cb
commit 24da85d059
2 changed files with 17 additions and 0 deletions

View file

@ -78,6 +78,7 @@ public:
void add_option(unsigned& value, const char* help_string, const char* long_name, char short_name, const char* value_name);
void add_option(double& value, const char* help_string, const char* long_name, char short_name, const char* value_name);
void add_option(Optional<double>& value, const char* help_string, const char* long_name, char short_name, const char* value_name);
void add_option(Optional<size_t>& value, const char* help_string, const char* long_name, char short_name, const char* value_name);
void add_positional_argument(Arg&&);
void add_positional_argument(const char*& value, const char* help_string, const char* name, Required required = Required::Yes);