autograder .run .submit
Alias for autograder.cli.courses.assignments.submissions.submit.
usage: python3 -m autograder.run.submit [-h] [--version] [--server SERVER]
[--user USER] [--pass PASS]
[--course COURSE]
[--assignment ASSIGNMENT]
[--message MESSAGE] [--allow-late]
[--testing-mode]
FILE [FILE ...]
Submit an assignment submission to the autograder.
options:
-h, --help show this help message and exit
--version show program's version number and exit
command-specific options:
--server SERVER The URL of the autograder server to communicate with.
--user USER The email of the user making this request.
--pass PASS The password of the user making this request.
--course COURSE The ID of the course to make this request to.
--assignment ASSIGNMENT
The ID of the assignment to make this request to.
--message MESSAGE An optional message to attach to the submission.
(default: None)
--allow-late Allow this submission to be graded, even if it is
late.
FILE The path to your submission file(s).
testing options:
--testing-mode Run as if a test is being run (default: False).
Alias for `autograder.cli.courses.assignments.submissions.submit`.
1""" 2Alias for `autograder.cli.courses.assignments.submissions.submit`. 3""" 4 5import argparse 6import sys 7 8import autograder.cli.courses.assignments.submissions.submit as alias 9 10def main() -> int: 11 """ Get a parser, parse the args, and call run. """ 12 13 return alias.run_cli(_get_parser().parse_args()) 14 15def _get_parser() -> argparse.ArgumentParser: 16 """ Get a parser for this operation. """ 17 18 parser = alias._get_parser() 19 parser.epilog = __doc__.strip() 20 return parser 21 22if (__name__ == '__main__'): 23 sys.exit(main())
def
main() -> int:
11def main() -> int: 12 """ Get a parser, parse the args, and call run. """ 13 14 return alias.run_cli(_get_parser().parse_args())
Get a parser, parse the args, and call run.