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
1 changed files with 1 additions and 1 deletions

View File

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