Bug 31771

Summary: bugzilla-tool --help spews way too much text
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 27164, 31772    
Attachments:
Description Flags
Patch none

Description Eric Seidel (no email) 2009-11-21 12:23:06 PST
bugzilla-tool --help spews way too much text

Fix it to just show a short list of the commands like "git help" or "svn help" do.

One piece which is not yet implemented, is that we don't just show "common" commands, we show all commands.  I plan to do the common-only part in a separate patch.
Comment 1 Adam Barth 2009-11-21 12:32:38 PST
Yes.  We definitely need to do this.
Comment 2 Eric Seidel (no email) 2009-11-21 12:45:00 PST
Created attachment 43655 [details]
Patch
Comment 3 Eric Seidel (no email) 2009-11-21 12:53:55 PST
In case you'd like to know what the now-awesomer help looks like, here it is:

(NOTE: the wrapping is from bugzilla's comment system, not from bugzilla-tool)

% bugzilla-tool --help
Usage: bugzilla-tool [options] COMMAND [ARGS]

Options:
  -h, --help  show this help message and exit
  --dry-run   do not touch remote servers

bugzilla-tool supports the following commands:
   apply-attachment       Apply an attachment to the local working directory
   apply-patches          Apply reviewed patches from provided bugs to the local working directory
   bugs-to-commit         List bugs in the commit-queue
   build                  Update working copy and build
   build-attachment       Apply and build patches from bugzilla
   build-queue            Run the build-queue
   check-style            Run check-webkit-style on the specified attachments
   commit-message         Print a commit message suitable for the uncommitted changes
   commit-queue           Run the commit-queue
   create-bug             Create a bug from local changes or local commits
   land-attachment        Land patches from bugzilla, optionally building and testing them first
   land-diff              Land the current working directory diff and updates the associated bug if any
   land-patches           Land all patches on the given bugs, optionally building and testing them first
   obsolete-attachments   Mark all attachments on a bug as obsolete
   patches-to-commit      List patches in the commit-queue
   post-commits           Attach a range of local commits to bugs as patch files
   post-diff              Attach the current working directory diff to a bug as a patch file
   reviewed-patches       List r+'d patches on a bug
   rollout                Revert the given revision in the working copy and optionally commit the revert and re-open the original bug
   style-queue            Run the style-queue
   tree-status            Print the status of the build.webkit.org buildbots

See 'bugzilla-tool help COMMAND' for more information on a specific command.
Comment 4 Adam Barth 2009-11-21 13:03:12 PST
Comment on attachment 43655 [details]
Patch

Yay!
Comment 5 WebKit Commit Bot 2009-11-21 13:34:59 PST
Comment on attachment 43655 [details]
Patch

Clearing flags on attachment: 43655

Committed r51287: <http://trac.webkit.org/changeset/51287>
Comment 6 WebKit Commit Bot 2009-11-21 13:35:08 PST
All reviewed patches have been landed.  Closing bug.