Add localization support to help provider (#1349)

Closes #1349
This commit is contained in:
Frank Ray
2023-11-10 23:22:52 +00:00
committed by GitHub
parent 023c77ff09
commit 250b1f4c9c
17 changed files with 1057 additions and 36 deletions

View File

@ -2,6 +2,7 @@ namespace Spectre.Console.Cli;
internal sealed class CommandAppSettings : ICommandAppSettings
{
public CultureInfo? Culture { get; set; }
public string? ApplicationName { get; set; }
public string? ApplicationVersion { get; set; }
public int MaximumIndirectExamples { get; set; }
@ -19,8 +20,8 @@ internal sealed class CommandAppSettings : ICommandAppSettings
public ParsingMode ParsingMode =>
StrictParsing ? ParsingMode.Strict : ParsingMode.Relaxed;
public Func<Exception, int>? ExceptionHandler { get; set; }
public Func<Exception, int>? ExceptionHandler { get; set; }
public CommandAppSettings(ITypeRegistrar registrar)
{
Registrar = new TypeRegistrar(registrar);