apk: fix invalid arguments only returned for last option
When the invalid options wasn't the last one the error would be ignored: apk --invalid --no-cache stats
I also simplified the code.
When the invalid options wasn't the last one the error would be ignored: apk --invalid --no-cache stats
I also simplified the code.