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:
Sam Atkins 2022-04-02 16:48:05 +01:00 committed by Andreas Kling
commit f0aba519c3
Notes: sideshowbarker 2024-07-17 12:05:16 +09:00
18 changed files with 46 additions and 52 deletions

View file

@ -34,7 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
bool no_auto_compress = false;
StringView archive_file;
char const* directory = nullptr;
Vector<char const*> paths;
Vector<String> paths;
Core::ArgsParser args_parser;
args_parser.add_option(create, "Create archive", "create", 'c');