Implement the options for exec and open