code: def set_options(self, *args, **options):
          
          self.verbosity = int(options.get('verbosity', 1))
  
          # Figure out what build directory to use
          if options.get("build_dir"):
              self.build_dir = options.get("build_dir")
              settings.BUILD_DIR = self.build_dir
          else:
              if not hasattr(settings, 'BUILD_DIR'):
                  raise CommandError(self.build_unconfig_msg)
              self.build_dir = settings.BUILD_DIR
  
          # Get the datatypes right so fs will be happy
          self.build_dir = smart_text(self.build_dir)
          self.static_root = smart_text(settings.STATIC_ROOT)
          self.media_root = smart_text(settings.MEDIA_ROOT)
  
          # Connect the BUILD_DIR with our filesystem backend
          self.app = apps.get_app_config("bakery")
          self.fs = self.app.filesystem
          self.fs_name = self.app.filesystem_name
  
          # If the build dir doesn't exist make it
          if not self.fs.exists(self.build_dir):
              self.fs.makedirs(self.build_dir)
  
          # Figure out what views we'll be using
          if options.get('view_list'):
              self.view_list = options['view_list']
          else:
              if not hasattr(settings, 'BAKERY_VIEWS'):
                  raise CommandError(self.views_unconfig_msg)
              self.view_list = settings.BAKERY_VIEWS
  
          # Are we pooling?
          self.pooling = options.get('pooling')
docs: Configure a few global options before things get going.