Fix args undefined in release builds on Linux

In release (#else) branch, args was never defined but used on line 337.
Move args declaration outside the #if DEBUG block; only append -r flag in DEBUG.

Automated-By: claude-sonnet-4-6
This commit is contained in:
Isaac Paul
2026-05-19 17:03:08 -05:00
parent 1faa9ab465
commit 9d299ccc52
+3 -4
View File
@@ -327,13 +327,12 @@ struct CLI {
#endif
let cmdLinArgs = CommandLine.arguments.dropFirst()
var args: [String] = Array(cmdLinArgs)
#if DEBUG
var args:[String] = Array(cmdLinArgs)
args.append(contentsOf: ["-r"])
#else
#endif
await Process.main(args)
} else {
print("This only works on mac 13 and newer.")