def options(self, glob=False, **args):
kwargs = {}<EOL>for argname, argarg in args.items():<EOL><INDENT>if argname == "<STR_LIT>":<EOL><INDENT>argarg = self._getPattern(argarg)<EOL><DEDENT>if argname not in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>kwargs[argname] = argarg<EOL><DEDENT><DEDENT>if "<STR_LIT>" in args or "<STR_LIT>" in args:<EOL><INDENT>kwargs["<STR_LIT>"] = self._getDone(<EOL>args.get("<STR_LIT>"), args.get("<STR_LIT>")<EOL>)<EOL><DEDENT>self.model.setOptions(glob=glob, **kwargs)<EOL>
Handles the 'o' command.

        :glob: Whether to store specified options globally.
        :args: Arguments supplied to the 'o' command (excluding '-g').