not parse NSDocumentRevisionsDebugMode

This commit is contained in:
u0u0
2023-06-24 10:33:51 +08:00
parent 7378b3d63c
commit cdfa273cef

View File

@@ -101,6 +101,9 @@ int main(int argc, char *argv[])
CommandSetup *cmd = CommandSetup::getInstance();
cmd->setRelauncher(relaunchSelf);
cmd->setEngineRootPath(getEngineRoot());
if (argc > 2 && strcmp(argv[1], "-NSDocumentRevisionsDebugMode") == 0) {
argc = 1; // not parse -NSDocumentRevisionsDebugMode YES
}
cmd->parseCommand(argc, argv);
cmd->setupEngine();