1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibCore: Add ArgsParser::add_option for Optional double

This commit is contained in:
mjz19910 2022-01-16 18:06:07 -07:00 committed by Andreas Kling
parent a9fb34ca6f
commit 14a267347c
2 changed files with 18 additions and 0 deletions

View file

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