There was an error while loading. Please reload this page.
1 parent 1d8f0ba commit 411169fCopy full SHA for 411169f
1 file changed
Sources/AppBundle/initAppBundle.swift
@@ -87,8 +87,9 @@ private func initServerArgs() {
87
case "--read-only": // todo rename to '--disabled' and unite with disabled feature
88
_serverArgs.isReadOnly = true
89
case "-NSDocumentRevisionsDebugMode" where isDebug:
90
- printStderr("Running from Xcode. Skip args parsing... The args were: \(CommandLine.arguments.dropFirst())")
91
- return
+ // Skip Xcode CLI args.
+ // Usually it's '-NSDocumentRevisionsDebugMode NO'/'-NSDocumentRevisionsDebugMode YES'
92
+ while args.getOrNil(atIndex: index)?.starts(with: "-") == false { index += 1 }
93
default:
94
cliError("Unrecognized flag '\(args.first.orDie())'")
95
}
0 commit comments