mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Utilities: Change unzip -o
option to -d
Other `unzip` implementations universally use `-d` to indicate the output directory, so let's follow this convention.
This commit is contained in:
parent
ed62fc9a43
commit
c247d7a662
Notes:
sideshowbarker
2024-07-18 12:18:52 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/c247d7a6622 Pull-request: https://github.com/SerenityOS/serenity/pull/8038
2 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ void do_unzip_archive(const Vector<String>& selected_file_paths, GUI::Window* wi
|
|||
}
|
||||
|
||||
if (!unzip_pid) {
|
||||
int rc = execlp("/bin/unzip", "/bin/unzip", "-o", output_directory_path.characters(), archive_file_path.characters(), nullptr);
|
||||
int rc = execlp("/bin/unzip", "/bin/unzip", "-d", output_directory_path.characters(), archive_file_path.characters(), nullptr);
|
||||
if (rc < 0) {
|
||||
perror("execlp");
|
||||
_exit(1);
|
||||
|
|
|
@ -77,7 +77,7 @@ int main(int argc, char** argv)
|
|||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(map_size_limit, "Maximum chunk size to map", "map-size-limit", 0, "size");
|
||||
args_parser.add_option(output_directory_path, "Directory to receive the archive content", "output-directory", 'o', "path");
|
||||
args_parser.add_option(output_directory_path, "Directory to receive the archive content", "output-directory", 'd', "path");
|
||||
args_parser.add_positional_argument(path, "File to unzip", "path", Core::ArgsParser::Required::Yes);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
|
|
Loading…
Reference in a new issue