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:
parent
13eb9c57d8
commit
78efd60297
@ -753,7 +753,7 @@ options_parsed:
|
||||
argv += optind;
|
||||
argc -= optind;
|
||||
|
||||
if (argc < 2) {
|
||||
if (argc < 1) {
|
||||
interactive_mode = true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user