@aliases("<STR_LIT>")<EOL>@arg("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT>", help="<STR_LIT>")<EOL>@arg("<STR_LIT>", "<STR_LIT>", default=False, action="<STR_LIT:store_true>",<EOL>help="<STR_LIT>")<EOL>@arg("<STR_LIT>", "<STR_LIT>", default=False, action="<STR_LIT:store_true>",<EOL>help="<STR_LIT>")<EOL>@selected_course<EOL>@false_exit<EOL>def submit(course, tid=None, pastebin=False, review=False):
if tid is not None:<EOL><INDENT>return submit_exercise(Exercise.byid(tid),<EOL>pastebin=pastebin,<EOL>request_review=review)<EOL><DEDENT>else:<EOL><INDENT>sel = Exercise.get_selected()<EOL>if not sel:<EOL><INDENT>raise NoExerciseSelected()<EOL><DEDENT>return submit_exercise(sel, pastebin=pastebin, request_review=review)<EOL><DEDENT>
Submit the selected exercise to the server.