sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.43k stars 479 forks source link

docbuild: switch from optparse to argparse #31366

Closed jhpalmieri closed 2 years ago

jhpalmieri commented 3 years ago

Sage's docbuilding uses optparse for argument parsing, but this library has been deprecated for a while. We should switch to argparse.

Some instructions for conversions can be found here: https://docs.python.org/3/library/argparse.html#help

Depends on #32946

Component: documentation

Author: Frédéric Chapoton

Branch/Commit: 0b62c16

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/31366

jhpalmieri commented 2 years ago

Dependencies: #32946

jhpalmieri commented 2 years ago
comment:36

Okay, let's merge it. (I added #32946 as a dependency because otherwise there would be a merge conflict.)

vbraun commented 2 years ago

Changed branch from public/ticket/31366 to 0b62c16