Make short option optional values behave like getopt