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)

defect

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.

Setting usage to argparse.SUPPRESS drops the parser's usage line without
replacing its formatter class, so a RawDescriptionHelpFormatter description
keeps its line breaks.

Status: NEW → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: