Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorKrolic committed Jun 9, 2024
1 parent f23b7b5 commit c4a4347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArgumentParsing.Generators/ArgumentParserGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
.Collect()
.Select((parsers, _) => !parsers.IsEmpty);

var forceDefaultVersionCommand = environmentInfo
var shouldGenerateDefaultVersionCommand = environmentInfo
.Select((info, _) => info.ForceDefaultVersionCommand)
.Combine(hasAnyParsersWithDefaultHandlers)
.Select((pair, _) => pair.Left || pair.Right);

context.RegisterSourceOutput(assemblyVersionInfo.Combine(forceDefaultVersionCommand), EmitVersionCommandHandler);
context.RegisterSourceOutput(assemblyVersionInfo.Combine(shouldGenerateDefaultVersionCommand), EmitVersionCommandHandler);
}
}

0 comments on commit c4a4347

Please sign in to comment.