• 
      

    Move rb-site's help formatting and version output into an arparsing module.

    Review Request #11419 — Created Jan. 29, 2021 and submitted

    Information

    Review Board
    release-4.0.x

    Reviewers

    This centralizes the custom help formatter and --version handling from
    rb-site into a new reviewboard.cmdline.utils.argparsing module,
    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 --version action lists the version for the program + Review Board,
    the Python version, and the install path for Review Board.

    Ran rb-site --version and rb-site --help. Saw the correct output.

    Summary ID
    Move rb-site's help formatting and version output into an arparsing module.
    This centralizes the custom help formatter and `--version` handling from `rb-site` into a new `reviewboard.cmdline.utils.argparsing` module, 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 `--version` action lists the version for the program + Review Board, the Python version, and the install path for Review Board.
    1b56c93fcf1558bcc0b8a19353f513f882abaf84
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.0.x (0b8fb95)