summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-13 16:59:16 +0200
committerLinus Groh <mail@linusgroh.de>2021-06-13 17:05:48 +0100
commitc247d7a6622223ef5f89ea9b6c12195f1c74eeae (patch)
tree67505e17f28cf8e93b39b629dbcc102e67e14386 /Userland
parented62fc9a4329d915043bef7222afd44285dec18e (diff)
downloadserenity-c247d7a6622223ef5f89ea9b6c12195f1c74eeae.zip
Utilities: Change `unzip -o` option to `-d`
Other `unzip` implementations universally use `-d` to indicate the output directory, so let's follow this convention.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/FileManager/main.cpp2
-rw-r--r--Userland/Utilities/unzip.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index d7cfb802d4..affbe121a7 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -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);
diff --git a/Userland/Utilities/unzip.cpp b/Userland/Utilities/unzip.cpp
index 5fe9de4e6c..640f821de9 100644
--- a/Userland/Utilities/unzip.cpp
+++ b/Userland/Utilities/unzip.cpp
@@ -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);