o revert most of the recent changes (int -> int64_t conversion) by using this functon for parsing all options.