Move rb-site's help formatting and version output into an arparsing module.
Review Request #11419 — Created Jan. 29, 2021 and submitted — Latest diff uploaded
This centralizes the custom help formatter and
--versionhandling from
rb-siteinto a newreviewboard.cmdline.utils.argparsingmodule,
allowing reuse by other programs.The help formatter provides terminal-bound wrapping while also
preserving paragraphs, unlike the default formatter which can do only
one or the other.The
--versionaction lists the version for the program + Review Board,
the Python version, and the install path for Review Board.
Ran
rb-site --versionandrb-site --help. Saw the correct output.