code: def handle_label(self, label, **options):
          
          if not hasattr(commands, 'sync_%s' % label):
              raise CommandError('"%s" is not a valid command.' % label)
  
          getattr(commands, 'sync_%s' % label)(**sanitize_command_options(options))
docs: Command handler.