Closed
Bug 2092293
Opened 12 days ago
Closed 11 days ago
`./mach help` rewraps a custom parser's description into one paragraph
Categories
(Firefox Build System :: Mach Core, defect)
Firefox Build System
Mach Core
Tracking
(firefox162 fixed)
RESOLVED
FIXED
162 Branch
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
Details
Attachments
(1 external file)
When a command or subcommand passes its own parser with formatter_class=argparse.RawDescriptionHelpFormatter, ./mach help replaces that formatter class to drop the usage line, so the description loses its line breaks. ./mach help theme contrast from bug 2090042 shows it.
| Assignee | ||
Comment 1•12 days ago
|
||
Setting usage to argparse.SUPPRESS drops the parser's usage line without
replacing its formatter class, so a RawDescriptionHelpFormatter description
keeps its line breaks.
Pushed by ahochheiden@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/1db95b5afc77
https://hg.mozilla.org/integration/autoland/rev/186eeb9d3f33
Keep a custom parser's formatter class in mach help r=mach-reviewers,ahal
Comment 3•11 days ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 11 days ago
status-firefox162:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Comment 4•11 days ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•