Here is a patch that introduces the concept of sub-options for drush help. The advantage of this technique over what was previously done is that commandfiles that extend an option group (e.g. sanitization options, svn options, etc.) can add new items to the group and have them all come out together in the final presentation (instead of all at the end, as they currently are).

This patch only converts one of the existing option groups; if you like the way this works, I'll go back and do them all.

Comments

moshe weitzman’s picture

i'm happy with this pattern.

dreditor is highlighting some newly added tabs. the drupal whitespace police disapproves.

greg.1.anderson’s picture

StatusFileSize
new9.28 KB

Here it is with all sub-option sections done, drush.api.php updated, and tabs de-tabbed.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

looks sane to me

greg.1.anderson’s picture

Status: Reviewed & tested by the community » Fixed

Committed with one additional adjustment: grouped the --lock options in pm-update / pm-updatecode.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.