Support associative array for setting option