@@ -118,8 +118,9 @@ func runCLI() {
118118 Option < Path > ( " ejsPath " , default: " " , description: " Path to EJS file for JavaScript templates. " ) ,
119119 Option < Path > ( " cacheBasePath " , default: " " , description: " Base path to Sourcery's cache directory " ) ,
120120 Option < Path > ( " buildPath " , default: " " , description: " Sets a custom build path " ) ,
121- Flag ( " hideVersionHeader " , description: " Do not include Sourcery version in the generated files headers. " )
122- ) { watcherEnabled, disableCache, verboseLogging, logAST, logBenchmark, parseDocumentation, quiet, prune, serialParse, sources, excludeSources, templates, excludeTemplates, output, isDryRun, configPaths, forceParse, baseIndentation, args, ejsPath, cacheBasePath, buildPath, hideVersionHeader in
121+ Flag ( " hideVersionHeader " , description: " Do not include Sourcery version in the generated files headers. " ) ,
122+ Option < String ? > ( " headerPrefix " , default: nil , description: " Additional prefix for headers. " )
123+ ) { watcherEnabled, disableCache, verboseLogging, logAST, logBenchmark, parseDocumentation, quiet, prune, serialParse, sources, excludeSources, templates, excludeTemplates, output, isDryRun, configPaths, forceParse, baseIndentation, args, ejsPath, cacheBasePath, buildPath, hideVersionHeader, headerPrefix in
123124 do {
124125 let logConfiguration = Log . Configuration (
125126 isDryRun: isDryRun,
@@ -206,7 +207,8 @@ func runCLI() {
206207 prune: prune,
207208 serialParse: serialParse,
208209 hideVersionHeader: hideVersionHeader,
209- arguments: configuration. args)
210+ arguments: configuration. args,
211+ headerPrefix: headerPrefix)
210212
211213 if isDryRun, watcherEnabled {
212214 throw " --dry not compatible with --watch "
@@ -301,8 +303,9 @@ func runCLI() {
301303 """ ) ,
302304 Option < Path > ( " cacheBasePath " , default: " " , description: " Base path to Sourcery's cache directory " ) ,
303305 Option < Path > ( " buildPath " , default: " " , description: " Sets a custom build path " ) ,
304- Flag ( " hideVersionHeader " , description: " Do not include Sourcery version in the generated files headers. " )
305- ) { disableCache, verboseLogging, logAST, logBenchmark, parseDocumentation, quiet, prune, serialParse, sources, excludeSources, templates, excludeTemplates, output, isDryRun, configPaths, forceParse, baseIndentation, args, cacheBasePath, buildPath, hideVersionHeader in
306+ Flag ( " hideVersionHeader " , description: " Do not include Sourcery version in the generated files headers. " ) ,
307+ Option < String ? > ( " headerPrefix " , default: nil , description: " Additional prefix for headers. " )
308+ ) { disableCache, verboseLogging, logAST, logBenchmark, parseDocumentation, quiet, prune, serialParse, sources, excludeSources, templates, excludeTemplates, output, isDryRun, configPaths, forceParse, baseIndentation, args, cacheBasePath, buildPath, hideVersionHeader, headerPrefix in
306309 do {
307310 let logConfiguration = Log . Configuration (
308311 isDryRun: isDryRun,
@@ -384,7 +387,8 @@ func runCLI() {
384387 prune: prune,
385388 serialParse: serialParse,
386389 hideVersionHeader: hideVersionHeader,
387- arguments: configuration. args)
390+ arguments: configuration. args,
391+ headerPrefix: headerPrefix)
388392
389393 return try sourcery. processFiles (
390394 configuration. source,
0 commit comments