Beispiel #1
0
def _create_parser():
    parser = ArgumentParser(description=common.PROGRAM_DESC[common.get_filename(__file__)])
    parser.add_argument('-la', '-list-archived', action='store_true', dest='list',
                        help='If set then all other flags are ignored and the current files in archiving are listed')
    parser.add_argument('-ca', '--cancel-archiving', action='store_true', dest='cancel_archiving',
                        help='If set then archives will not be moved to the archiving directory')
    parser.add_argument('-l', '--location', type=str, dest='location', default='.',
                        help='Location of zip files')
    parser.add_argument('-s', '--students', type=str, dest='student_location',
                        help='Location to store assignment and student directories, default is '
                             'same location as the zip files')
    parser.add_argument('-a', '-assignment', type=str, dest='assignment',
                        help='Uses the given assignment archive that has already been archived '
                             '[used before without the -ca flag')
    parser.add_argument('rubric', type=str,
                        help='Location of a json file defining a rubric for a lab')

    return parser
Beispiel #2
0
def _create_parser():
    parser = argparse.ArgumentParser(description=common.PROGRAM_DESC[common.get_filename(__file__)])
    parser.add_argument("assignment", type=str, help="Location of assignment directory to grade.")

    return parser