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

Kernel: Remove CommandLine::get() in favor of lookup()

lookup() returns an Optional<String> which allows us to implement easy
default values using lookup(key).value_or(default_value);
This commit is contained in:
Andreas Kling 2020-04-18 14:22:42 +02:00
parent cebb619f8e
commit e3b450005f
4 changed files with 2 additions and 14 deletions

View file

@ -39,7 +39,6 @@ public:
static void initialize(const String&);
const String& string() const { return m_string; }
String get(const String& key) const;
Optional<String> lookup(const String& key) const;
bool contains(const String& key) const;