code: def print_options(self):
          
          options = []
  
          print("The script is running with the following options:")
  
          options.append(("dry_run", self.options.dry_run))
  
          options.append(("worker_config", self.__class__))
  
          database_config = self.database_config or \
                            self.options.queue_model.database.connection_settings
          options.append(("database", '%s:%s:%s' % (database_config['host'],
                                                    database_config['port'],
                                                    database_config['db'])))
  
          if self.options.worker_class is not None:
              options.append(("worker-class", self.options.worker_class))
  
          for name, value in options:
              print(" - %s = %s" % (name.replace('_', '-'), value))
  
          print("The worker will run with the following options:")
          for name in self.options.worker_class.parameters:
              option = getattr(self.worker, name)
              if name == 'callback' and \
                  self.options.worker_class.execute == Worker.execute:
                  option = '<jobs "run" method>'
              elif isinstance(option, (list, tuple, set)):
                  option = ','.join(option)
              print(" - %s = %s" % (name.replace('_', '-'), option))
docs: Print all options as parsed by the script