cqapi: Fixed handling long non-POSIX options

Ignoring long options instead of neverending loop.