autograder .run .change-pass
Alias for autograder.cli.users.password.change.
usage: python3 -m autograder.run.change-pass [-h] [--version]
[--server SERVER] [--user USER]
[--pass PASS] --new-pass NEW_PASS
[--testing-mode]
Change your password to the one provided.
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.
--new-pass NEW_PASS
The new password.
testing options:
--testing-mode Run as if a test is being run (default: False).
Alias for `autograder.cli.users.password.change`.
1# pylint: disable=invalid-name 2 3""" 4Alias for `autograder.cli.users.password.change`. 5""" 6 7import argparse 8import sys 9 10import autograder.cli.users.password.change as alias 11 12def main() -> int: 13 """ Get a parser, parse the args, and call run. """ 14 15 return alias.run_cli(_get_parser().parse_args()) 16 17def _get_parser() -> argparse.ArgumentParser: 18 """ Get a parser for this operation. """ 19 20 parser = alias._get_parser() 21 parser.epilog = __doc__.strip() 22 return parser 23 24if (__name__ == '__main__'): 25 sys.exit(main())
def
main() -> int:
13def main() -> int: 14 """ Get a parser, parse the args, and call run. """ 15 16 return alias.run_cli(_get_parser().parse_args())
Get a parser, parse the args, and call run.