Overload setOptions to allow specifying an array of command-line options.