def set_options(self, options):
<EOL>self.wipe = options.get("<STR_LIT>")<EOL>self.test_run = options.get("<STR_LIT>")<EOL>self.quiet = options.get("<STR_LIT>")<EOL>self.container_name = options.get("<STR_LIT>")<EOL>self.verbosity = int(options.get("<STR_LIT>"))<EOL>self.syncmedia = options.get("<STR_LIT>")<EOL>self.syncstatic = options.get("<STR_LIT>")<EOL>if self.test_run:<EOL><INDENT>self.verbosity = <NUM_LIT:2><EOL><DEDENT>cli_includes = options.get("<STR_LIT>")<EOL>cli_excludes = options.get("<STR_LIT>")<EOL>if self.syncmedia and self.syncstatic:<EOL><INDENT>raise CommandError("<STR_LIT>")<EOL><DEDENT>if not self.container_name:<EOL><INDENT>if self.syncmedia:<EOL><INDENT>self.container_name = CUMULUS["<STR_LIT>"]<EOL><DEDENT>elif self.syncstatic:<EOL><INDENT>self.container_name = CUMULUS["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>raise CommandError("<STR_LIT>")<EOL><DEDENT><DEDENT>settings_includes = CUMULUS["<STR_LIT>"]<EOL>settings_excludes = CUMULUS["<STR_LIT>"]<EOL>if self.syncmedia:<EOL><INDENT>self.file_root = os.path.abspath(settings.MEDIA_ROOT)<EOL>self.file_url = settings.MEDIA_URL<EOL><DEDENT>elif self.syncstatic:<EOL><INDENT>self.file_root = os.path.abspath(settings.STATIC_ROOT)<EOL>self.file_url = settings.STATIC_URL<EOL><DEDENT>if not self.file_root.endswith("<STR_LIT:/>"):<EOL><INDENT>self.file_root = self.file_root + "<STR_LIT:/>"<EOL><DEDENT>if self.file_url.startswith("<STR_LIT:/>"):<EOL><INDENT>self.file_url = self.file_url[<NUM_LIT:1>:]<EOL><DEDENT>self.includes = list(set(cli_includes + settings_includes))<EOL>self.excludes = list(set(cli_excludes + settings_excludes))<EOL>self.local_filenames = []<EOL>self.create_count = <NUM_LIT:0><EOL>self.upload_count = <NUM_LIT:0><EOL>self.update_count = <NUM_LIT:0><EOL>self.skip_count = <NUM_LIT:0><EOL>self.delete_count = <NUM_LIT:0><EOL>
Sets instance variables based on an options dict