Closed Bug 1943650 Opened 1 year ago Closed 1 year ago

Command-line --help output misformatted

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox-esr128 --- fixed
firefox134 --- wontfix
firefox135 --- fixed
firefox136 --- fixed

People

(Reporter: psychonaut, Assigned: mkmelin)

References

Details

Attachments

(1 file)

Invoking Thunderbird with the --help command-line option results in some misformatted lines. Here's an excerpt showing the problem:

  --headless         Run without a GUI.
  --dbus-service <launcher>  Run as DBus service for org.freedesktop.Application and
                             set a launcher (usually /usr/bin/appname script) for it.  -compose [ <options> ] Compose a mail or news message. Options are specified
                     as string "option='value,...',option=value,..." and
                     include: from, to, cc, bcc, newsgroups, subject, body,
                     message (file), attachment (file), format (html | text).
                     Example: "to=john@example.com,subject='Dinner tonight?'"
  --jsconsole        Open the Browser Console.

In particular, the -compose option should start on a new line, not in the same paragraph as --dbus-service. It probably also needs to be moved to the very end of the list of options, along with the other "short" options that start with a single hyphen rather than a double hyphen (-mail, -file, etc.).

Right, the --dbus-service is missing a newline

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Component: General → Widget: Gtk
Depends on: 1894912
Ever confirmed: true
Product: Thunderbird → Core
Version: Thunderbird 128 → unspecified
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e84ed5f3e13 Command-line --help output misformatted after --dbus-service. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

Comment on attachment 9461619 [details]
Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Malformed command line output for --help
  • User impact if declined: Malformed command line output --help
  • Fix Landed on Version: 128
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very safe, just an added \n

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Malformed command line output --help
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very safe, just an added \n
  • String changes made/needed: none
  • Is Android affected?: No
Attachment #9461619 - Flags: approval-mozilla-esr128?
Attachment #9461619 - Flags: approval-mozilla-beta?

Comment on attachment 9461619 [details]
Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio

Approved for 135.0rc1 and 128.7esr.

Attachment #9461619 - Flags: approval-mozilla-esr128?
Attachment #9461619 - Flags: approval-mozilla-esr128+
Attachment #9461619 - Flags: approval-mozilla-beta?
Attachment #9461619 - Flags: approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: