Bug 439307

Summary: heaptrack launch script help text shows wrong option name for --output-file
Product: [Applications] Heaptrack Reporter: Matt Whitlock <kde>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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