completions/iwctl: fix spurious error output

Regressed in 4.1 in c94eddaf4b (Replaced all uses of argparse -i
with argparse -u, 2025-08-30).

Closes #11983
This commit is contained in:
Johannes Altmanninger
2025-10-21 21:36:34 +02:00
parent 6fd1304e52
commit 3c468054bd

View File

@@ -8,7 +8,7 @@ function __iwctl_filter -w iwctl
# awk does not work on multiline entries, therefore we use string match,
# which has the added benefit of filtering out the `No devices in ...` lines
argparse -u all-columns -- $argv
argparse -u 'all-columns&' -- $argv
# remove color escape sequences
set -l results (iwctl $argv_opts -- $argv | string replace -ra '\e\[[\d;]+m' '')