From 38f37b7abc1f6be83d613d4e6225147a0cb449f8 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 19 Feb 2019 10:04:37 +0100 Subject: [PATCH] commandline: Remove stray "w" short option Fun fact: `commandline -w` hits an assert and crashes. --- src/builtin_commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin_commandline.cpp b/src/builtin_commandline.cpp index 3d22329f7..5890fb1c0 100644 --- a/src/builtin_commandline.cpp +++ b/src/builtin_commandline.cpp @@ -201,7 +201,7 @@ int builtin_commandline(parser_t &parser, io_streams_t &streams, wchar_t **argv) return STATUS_CMD_ERROR; } - static const wchar_t *const short_options = L":abijpctwforhI:CLSsP"; + static const wchar_t *const short_options = L":abijpctforhI:CLSsP"; static const struct woption long_options[] = {{L"append", no_argument, NULL, 'a'}, {L"insert", no_argument, NULL, 'i'}, {L"replace", no_argument, NULL, 'r'},