C command line option parser