simple option parsing in C