Update util.py

add confirm func for set options