[all-commits] [llvm/llvm-project] 9d66d2: [CommandLine] Show '[subcommand]' in the help for ...
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Fri Dec 8 10:32:20 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d66d263ad4371160320f4f91720a345eb241471
https://github.com/llvm/llvm-project/commit/9d66d263ad4371160320f4f91720a345eb241471
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2023-12-09 (Sat, 09 Dec 2023)
Changed paths:
M llvm/lib/Support/CommandLine.cpp
M llvm/unittests/Support/CommandLineTest.cpp
Log Message:
-----------
[CommandLine] Show '[subcommand]' in the help for less than 3 subcommands (#74557)
When a tool defines only one or two subcommands, the `[subcommand]` part
is not displayed in the `USAGE` help line. Note that a similar issue
for printing the list of the subcommands has been fixed in
https://reviews.llvm.org/D25463.
More information about the All-commits
mailing list