Browse Source

Projucer: Added a check for unknown command line arguments

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
0b442c3036
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      extras/Projucer/Source/Application/jucer_CommandLine.cpp

+ 2
- 0
extras/Projucer/Source/Application/jucer_CommandLine.cpp View File

@@ -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)
{


Loading…
Cancel
Save