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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | help-sub-options-2.patch | 9.28 KB | greg.1.anderson |
| help-sub-options.patch | 2.88 KB | greg.1.anderson |
Comments
Comment #1
moshe weitzman commentedi'm happy with this pattern.
dreditor is highlighting some newly added tabs. the drupal whitespace police disapproves.
Comment #2
greg.1.anderson commentedHere it is with all sub-option sections done, drush.api.php updated, and tabs de-tabbed.
Comment #3
moshe weitzman commentedlooks sane to me
Comment #4
greg.1.anderson commentedCommitted with one additional adjustment: grouped the --lock options in pm-update / pm-updatecode.