Modify mygetopt so that if an argument expects a value and that value is the next argument then myoptarg is set to a NULL pointer.