set exit status to 1 if -n is used without -i and -o

This commit is contained in:
Alexandre Ratchov 2016-06-02 07:07:58 +02:00
parent c22cfa6294
commit 474f0ce009
1 changed files with 1 additions and 1 deletions

View File

@ -1393,7 +1393,7 @@ main(int argc, char **argv)
}
if (mode != (SIO_PLAY | SIO_REC)) {
log_puts("both -i and -o required\n");
return 0;
return 1;
}
if (!offline())
return 1;