From 310eb72f729961ff9daa63158c5406b895c34a13 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Wed, 11 Aug 2021 18:26:29 +0200 Subject: [PATCH] Userland: Add support for --delete flag as alias of -d to tr --- Userland/Utilities/tr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/tr.cpp b/Userland/Utilities/tr.cpp index bc5ac10e8e..fa77a604d6 100644 --- a/Userland/Utilities/tr.cpp +++ b/Userland/Utilities/tr.cpp @@ -18,7 +18,7 @@ int main(int argc, char** argv) Core::ArgsParser args_parser; args_parser.add_option(complement_flag, "Take the complement of the first set", "complement", 'c'); - args_parser.add_option(delete_flag, "Delete characters instead of replacing", nullptr, 'd'); + args_parser.add_option(delete_flag, "Delete characters instead of replacing", "delete", 'd'); args_parser.add_positional_argument(from_chars, "Set of characters to translate from", "from"); args_parser.add_positional_argument(to_chars, "Set of characters to translate to", "to", Core::ArgsParser::Required::No); args_parser.parse(argc, argv);