From 2902c3b968920a03a7309f87e82257e1b0c30ba1 Mon Sep 17 00:00:00 2001 From: Kevin Falcone Date: Wed, 4 Jan 2017 13:31:39 -0500 Subject: [PATCH] It's always bugged me that the help strings were nonsensical While here, the one-line docstring also bothered me. --- .../contentstore/management/commands/export.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/management/commands/export.py b/cms/djangoapps/contentstore/management/commands/export.py index 076bf944a2..44923c6abf 100644 --- a/cms/djangoapps/contentstore/management/commands/export.py +++ b/cms/djangoapps/contentstore/management/commands/export.py @@ -14,16 +14,19 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey class Command(BaseCommand): """ - Export the specified data directory into the default ModuleStore + Export the specified course into a directory. Output will need to be tar zxcf'ed. """ - help = 'Export the specified data directory into the default ModuleStore' + help = 'Export the specified course into a directory' def add_arguments(self, parser): parser.add_argument('course_id') parser.add_argument('output_path') def handle(self, *args, **options): - """Execute the command""" + """ + Given a course id(old or new style), and an output_path folder. Export the + corresponding course from mongo and put it directly in the folder. + """ try: course_key = CourseKey.from_string(options['course_id']) except InvalidKeyError: