mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Utilities: Read positional arguments as Strings not char*s
This is a pretty trivial change so they're all batched together.
This commit is contained in:
parent
84b67754c0
commit
f0aba519c3
18 changed files with 46 additions and 52 deletions
|
@ -39,11 +39,11 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
|
||||
String program_name = AK::LexicalPath::basename(args.strings[0]);
|
||||
|
||||
Vector<char const*> files;
|
||||
Vector<String> files;
|
||||
|
||||
bool recursive = (program_name == "rgrep"sv);
|
||||
bool use_ere = (program_name == "egrep"sv);
|
||||
Vector<char const*> patterns;
|
||||
Vector<String> patterns;
|
||||
BinaryFileMode binary_mode { BinaryFileMode::Binary };
|
||||
bool case_insensitive = false;
|
||||
bool line_numbers = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue