From 0b442c303645fa4c29ec0036c54339dfe651a9f0 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 3 Jul 2018 12:07:02 +0100 Subject: [PATCH] Projucer: Added a check for unknown command line arguments --- extras/Projucer/Source/Application/jucer_CommandLine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/Projucer/Source/Application/jucer_CommandLine.cpp b/extras/Projucer/Source/Application/jucer_CommandLine.cpp index a088828a8b..475518f257 100644 --- a/extras/Projucer/Source/Application/jucer_CommandLine.cpp +++ b/extras/Projucer/Source/Application/jucer_CommandLine.cpp @@ -892,6 +892,8 @@ int performCommandLine (const String& commandLine) if (matchArgument (command, "trans-finish")) { createFinishedTranslationFile (args); return 0; } if (matchArgument (command, "set-global-search-path")) { setGlobalPath (args); return 0; } if (matchArgument (command, "create-project-from-pip")) { createProjectFromPIP (args); return 0; } + + if (command.startsWith ("-")) { throw CommandLineError ("Unrecognised command: " + command.quoted()); } } catch (const CommandLineError& error) {