We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cd6c22 + 0eb1b1c commit 5a914f9Copy full SHA for 5a914f9
CodeGeneration/Sources/generate-swiftsyntax/GenerateSwiftSyntax.swift
@@ -70,7 +70,15 @@ struct TemplateSpec {
70
@main
71
struct GenerateSwiftSyntax: ParsableCommand {
72
@Argument(help: "The path to the source directory (i.e. 'swift-syntax/Sources') where the source files are to be generated")
73
- var destination: String
+ var destination: String = {
74
+ let sourcesURL = URL(fileURLWithPath: #filePath)
75
+ .deletingLastPathComponent()
76
77
78
79
+ .appendingPathComponent("Sources")
80
+ return sourcesURL.path
81
+ }()
82
83
@Flag(help: "Enable verbose output")
84
var verbose: Bool = false
0 commit comments