[sys] optparse: check argv

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>