Bug 479648

Summary: provide a command line option like --list-tools
Product: [Developer tools] valgrind Reporter: 吴振宇 <Wuzy01>
Component: generalAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: wishlist CC: pjfloyd
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description 吴振宇 2024-01-11 14:09:57 UTC
provide a command line option like --list-tools, it can help some shell completion of `valgrind --tool=<TAB>`

<https://github.com/zsh-users/zsh/blob/master/Completion/Linux/Command/_valgrind#L259>
Comment 1 Paul Floyd 2024-01-11 14:24:45 UTC
--help outputs

  tool-selection option, with default in [ ]:
    --tool=<name>             use the Valgrind tool named <name> [memcheck]
                              available tools are:
                              memcheck cachegrind callgrind helgrind drd
                              massif dhat lackey none exp-bbv

Maybe I could add --tool=help to also print the above message.