mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Userland: Use Core::ArgsParser's Vector<StringView> API everywhere
...and remove the Vector<String> variant since there are no remaining users of this API.
This commit is contained in:
parent
395ba619d8
commit
f1cc3d0fc4
17 changed files with 31 additions and 47 deletions
|
@ -54,7 +54,7 @@ static bool write_variable(StringView name, StringView value)
|
|||
return true;
|
||||
}
|
||||
|
||||
static int handle_variables(Vector<String> const& variables)
|
||||
static int handle_variables(Vector<StringView> const& variables)
|
||||
{
|
||||
bool success = false;
|
||||
for (auto const& variable : variables) {
|
||||
|
@ -95,7 +95,7 @@ static int handle_show_all()
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
bool show_all = false;
|
||||
Vector<String> variables;
|
||||
Vector<StringView> variables;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_general_help("Show or modify system-internal values. This requires root, and can crash your system.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue