Closed
Bug 799312
Opened 13 years ago
Closed 13 years ago
mach help <command> should work
Categories
(Firefox Build System :: Mach Core, enhancement)
Firefox Build System
Mach Core
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla19
People
(Reporter: gps, Assigned: gps)
Details
Attachments
(1 file)
3.18 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
|mach help| displays generic help
|mach <command> --help| displays help for the specified command
|mach help <command>| displays generic help
|mach help <command>| should probably display help for a specific command. That's more user friendly and follows the convention of Git, Mercurial, etc after all.
Assignee | ||
Comment 1•13 years ago
|
||
Even |mach help help| works \o/
Example output:
$ ./mach help xpcshell-test
usage: mach [global arguments] command [command arguments] xpcshell-test
[-h] [--debug] [TEST]
positional arguments:
TEST Test to run. Can be specified as a single JS file, a directory,
or omitted. If omitted, the entire test suite is executed.
optional arguments:
-h, --help show this help message and exit
--debug, -d Run test in a debugger.
That redundancy in the usage line is an existing bug. Time to file another bug...
Comment 2•13 years ago
|
||
Comment on attachment 669375 [details] [diff] [review]
Make |mach help <command>| work
I would greatly prefer if the _help function actually contained the logic to do this. Maybe you can set the parser (temporarily?) on the instance such that you don't need to pass it to every function?
i'll r+ this, but would like a follow-up to fix this more rigorously
Attachment #669375 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 3•13 years ago
|
||
I'm working on a patch now that changes how the class instances for command providers are instantiated. In short, no more requiring a specific __init__. I plan to pass the parser instance to the class instance as part of this change.
Assignee | ||
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•