3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

client: fix non-interactive mode in some cases

Before this change, I noticed that some non-interactive commands
don't work,

  $ iwctl version

  $ iwctl help

while other ones do.

  $ iwctl station wlan0 show

This seems to be a typo bug in the if clause checking for additional
arguments.
This commit is contained in:
Neehar Vijay 2022-11-20 21:39:17 +05:30 committed by Denis Kenzior
parent 13eb9c57d8
commit 78efd60297

View File

@ -753,7 +753,7 @@ options_parsed:
argv += optind;
argc -= optind;
if (argc < 2) {
if (argc < 1) {
interactive_mode = true;
return false;
}