Handle options from a set of arguments