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:
parent
cebb619f8e
commit
e3b450005f
4 changed files with 2 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue