Organize the rbt post --help output.

Review Request #5463 — Created Feb. 12, 2014 and submitted — Latest diff uploaded

Information

RBTools
master
adf58fe...

Reviewers

rbt post has a lot of options, and it was hard to figure out which
options were intended to serve which purposes, unless you knew what you
were looking for.

This organizes all the options into groups. To do this, I've implemented
a custom OptionGroup class that just wraps optparse's OptionGroup.
Commands can use this to group instances of our Option class under a
name and optional description.

The options are divided into the following groups:

* Posting Options
* Review Board Server Options
* Repository Options
* Review Request Field Options
* Diff Generation Options
* Git Options
* Perforce Options
* Subversion Options

Checked the help output and saw all the nice new groups.

Usage: rbt post [options] [revisions]
Uploads diffs to create and update review requests.
Options:
  -d, --debug           display debug output
  Posting Options:
    Controls the behavior of a post, including what review request gets
    posted and how, and what happens after it is posted.
    -r ID, --review-request-id=ID
                        Specifies the existing review request ID to update.
    -u, --update        Automatically determines the existing review request
                        to update.
    -p, --publish       Immediately publishes the review request after
                        posting.
    -o, --open          Opens a web browser to the review request after
                        posting.
    --submit-as=USERNAME
                        The user name to use as the author of the review
                        request, instead of the logged in user.
    --change-only       Updates fields from the change description, but does
                        not upload

Diff Revision 2 (Latest)

orig
1
2
rbtools/commands/__init__.py
rbtools/commands/post.py
Loading...