'Execute the command'

def handle(self, *args, **options):

    if (len(args) != 1):
        raise CommandError('export    requires    one    argument:    <output    path>')
    output_path = args[0]
    (courses, failed_export_courses) = export_courses_to_output_path(output_path)
    print ('=' * 80)
    print ((u'=' * 30) + u'>    Export    summary')
    print u'Total    number    of    courses    to    export:    {0}'.format(len(courses))
    print u'Total    number    of    courses    which    failed    to    export:    {0}'.format(len(failed_export_courses))
    print u'List    of    export    failed    courses    ids:'
    print u'\n'.join(failed_export_courses)
    print ('=' * 80)
