text: from django.core.management import BaseCommand
  from guests import csv_import
  from sys import stderr
  
  
  class Command(BaseCommand):
  
      def add_arguments(self, parser):
          parser.add_argument('--file', type=str, help='File to export to.')
  
      def handle(self, *args, **kwargs):
          if kwargs.get('file'):
              print("Exporting file {}.".format(kwargs['file']))
              csv_import.export_guests(kwargs['file'])
          else:
              print("Please provde a file.")
              exit(1)
  