mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
Userland: Convert command line arguments to String/StringView
StringView was used where possible. Some utilities still use libc functions which expect null-terminated strings, so String objects were used there instead.
This commit is contained in:
parent
fded8f861d
commit
60f6bc902b
25 changed files with 101 additions and 100 deletions
|
@ -24,8 +24,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
pid_t pid = 0;
|
||||
bool flag_create = false;
|
||||
bool flag_delete = false;
|
||||
char const* tty_name = nullptr;
|
||||
char const* from = nullptr;
|
||||
StringView tty_name;
|
||||
StringView from;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(flag_create, "Create entry", "create", 'c');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue