Bug 439307 - heaptrack launch script help text shows wrong option name for --output-file
Summary: heaptrack launch script help text shows wrong option name for --output-file
Status: RESOLVED FIXED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 17:36 UTC by Matt Whitlock
Modified: 2021-06-29 18:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2021-06-29 17:36:01 UTC
The output from "heaptrack --help" claims the existence of an option "-o, --output", but actually trying to specify an "--output" argument yields:

  Error: Debuggee "--output" was not found.

Examining the script source reveals that the actual name of the long option is "--output-file".

The usage help text should be corrected.
Comment 1 Milian Wolff 2021-06-29 18:55:47 UTC
Git commit 7367ae25d723f1b88e32453ea4d15008f7276fbb by Milian Wolff.
Committed on 29/06/2021 at 18:55.
Pushed by mwolff into branch 'master'.

Also parse `--output` as alias according to help output for `-o`

Keep the `--output-file` form for backwards compat.

M  +1    -1    src/track/heaptrack.sh.cmake

https://invent.kde.org/sdk/heaptrack/commit/7367ae25d723f1b88e32453ea4d15008f7276fbb