[setup] check opt is valid