Modernize and improve options for rbext.
Review Request #11426 — Created Feb. 2, 2021 and submitted — Latest diff uploaded
This change makes a few improvements to
rbextto modernize command
line parsing, help output, and console output.
rbext --helpand each subcommand's--helpnow provides more useful
instructions, with links to useful URLs where appropriate. They're
formatted by the newHelpFormattersplit off fromrb-site.
rbext --versionnow works, showing the Review Board version, Python
version, and Review Board install path.
rbext testhas new native support for-x,--pdb, and
--with-coverageoptions, and explicit documentation on how to make use
ofnosetestsoptions.Console output uses the new
Consoleobject, which doesn't do a whole
lot in our case, but does allow us to standardize things.Variables for manual URLs were also standardized.
Checked
rbext --help,rbext create --help, andrbext test --help
and verified the output was formatted correctly.Ran
rbext createand verified all the generated files were correct,
including URLs.Ran
rbext testwith the new options and verified that they impacted
the tests I ran.