diff --git a/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs b/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs index 2a781d113d1..f57d00bc963 100644 --- a/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs +++ b/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs @@ -144,6 +144,8 @@ internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult) : Filters = ParseFilters(command, parseResult); (DisplayAllColumns, ColumnsToDisplay) = ParseTabularOutputSettings(command, parseResult); + Filters.TryGetValue(FilterOptionDefinition.LanguageFilter, out string? language); + Language = language; } public IReadOnlyDictionary Filters { get; } @@ -154,7 +156,6 @@ internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult) : internal string? SearchNameCriteria { get; } - //TODO: internal string? Language { get; } } }