]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wdctl: remove -d option leftover
authorMunehisa Kamata <kamatam@amazon.com>
Tue, 28 Oct 2025 19:54:17 +0000 (12:54 -0700)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Dec 2025 13:35:57 +0000 (14:35 +0100)
commit130f96c94e02fdaea9d8b976ff65ad37b59bc4df
tree8141c2628795419f0fc5fcaf780d5611b6940dd7
parentc0ee6fc19c0458c83a80bd981c5b171d44c6392f
wdctl: remove -d option leftover

-d option was removed in commit f56338b43973 ("wdctl: allow to specify more
than one device"), but the optstring wasn't updated at that time and wdctl
can still accept the option halfway as below:

 $ wdctl -d
 wdctl: option requires an argument -- 'd'

whereas it should say:

 wdctl: invalid option -- 'd'

So update the optstring.

Fixes: f56338b43973 ("wdctl: allow to specify more than one device")
Signed-off-by: Munehisa Kamata <kamatam@amazon.com>
(cherry picked from commit 56e2c86c2c7ea012b63cd896d9ca3daa34f19565)
sys-utils/wdctl.c