1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibCore: Add an ArgsParser::add_option() overload for doubles

This commit is contained in:
Nico Weber 2020-11-05 15:57:22 -05:00 committed by Andreas Kling
parent e673abb93f
commit b143e604d7
2 changed files with 33 additions and 9 deletions

View file

@ -73,6 +73,7 @@ public:
void add_option(bool& value, const char* help_string, const char* long_name, char short_name);
void add_option(const char*& value, const char* help_string, const char* long_name, char short_name, const char* value_name);
void add_option(int& 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_positional_argument(Arg&&);
void add_positional_argument(const char*& value, const char* help_string, const char* name, Required required = Required::Yes);