def apply_options(self, cmd, options=()):
for option in (self.default_cmd_options + options):<EOL><INDENT>cmd = self.apply_option(cmd, option,<EOL>active=getattr(self, option, False))<EOL><DEDENT>return cmd<EOL>
Apply command-line options.