Skip to content

Commit

Permalink
Make 'configure' delegate optional in AddCommandApp(IServiceCollection)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrogers committed Jun 11, 2024
1 parent 239f292 commit b762c78
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ public static class CommandAppServiceCollectionExtensions
/// <returns>The <see cref="IServiceCollection"/>.</returns>
public static IServiceCollection AddCommandApp(
this IServiceCollection services,
Action<HostBuilderContext, ICommandAppBuilder> configure)
Action<HostBuilderContext, ICommandAppBuilder>? configure = null)
{
ArgumentNullException.ThrowIfNull(configure);

return services.AddCommandApp(default, configure);
}

Expand Down

0 comments on commit b762c78

Please sign in to comment.