summaryrefslogtreecommitdiff
path: root/Userland/Utilities/tr.cpp
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-08-11 18:26:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-12 00:41:13 +0200
commit310eb72f729961ff9daa63158c5406b895c34a13 (patch)
tree5d33eed7128fbccec01b774bc6a0ae4d1aab3bf8 /Userland/Utilities/tr.cpp
parent89ba022eded01db43c485a8826d859713ef81a37 (diff)
downloadserenity-310eb72f729961ff9daa63158c5406b895c34a13.zip
Userland: Add support for --delete flag as alias of -d to tr
Diffstat (limited to 'Userland/Utilities/tr.cpp')
-rw-r--r--Userland/Utilities/tr.cpp2
1 files changed, 1 insertions, 1 deletions
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);