mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibCore: Add an ArgsParser::add_option() overload for doubles
This commit is contained in:
committed by
Andreas Kling
parent
e673abb93f
commit
b143e604d7
Notes:
sideshowbarker
2024-07-19 01:31:32 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/b143e604d71 Pull-request: https://github.com/SerenityOS/serenity/pull/3983
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user