process global option using the same function with add option;show default value in add option;hide add_option if not using