[llvm] [CommandLine] Better report unknown subcommands (PR #74811)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 00:07:55 PST 2023


================
@@ -2206,4 +2206,25 @@ TEST(CommandLineTest, DefaultValue) {
   EXPECT_EQ(1, StrInitOption.getNumOccurrences());
 }
 
+TEST(CommandLineTest, UnknownSubcommand) {
----------------
jh7370 wrote:

I might be tempted to name this `UnknownCommands` so that it covers top-level and subcommands, since it doesn't look like there's checking for the unknown command message elsewhere, at a quick glance.

https://github.com/llvm/llvm-project/pull/74811


More information about the llvm-commits mailing list