Closed Bug 1173633 Opened 9 years ago Closed 9 years ago

Display docstrings in mach help

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: gps, Assigned: gps)

Details

Attachments

(1 file)

mach help could be made more useful if docstrings from mach command functions were displayed.
Bug 1173633 - Print docstrings of mach command handlers in help output; r?ahal

`mach help <command>` currently only displays a brief description of the
command along with its arguments. Sometimes more detailed help text is
needed.

With this commit, the docstrings of mach command handlers will appear in
the output of `mach help <command>` if they are defined.

I've implemented basic docstrings for the three flavors of mach commands
(normal command, main subcommand, subcommand) to demonstate things work.

My hope is others will start to fill in docstrings once this feature
lands so the output for `mach help` can serve as a better learning guide
for new contributors.
Attachment #8620741 - Flags: review?(ahalberstadt)
Comment on attachment 8620741 [details]
MozReview Request: Bug 1173633 - Print docstrings of mach command handlers in help output; r?ahal

https://reviewboard.mozilla.org/r/10819/#review9487

Good idea!
Attachment #8620741 - Flags: review?(ahalberstadt) → review+
https://hg.mozilla.org/mozilla-central/rev/dd39dc238ef1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: