commandlineparser / commandline

The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
MIT License
4.53k stars 477 forks source link

HelpText different language #871

Open danijerez opened 1 year ago

danijerez commented 1 year ago

Is there a way to make the HelpText parameter support a different language at runtime? example idea, is there an alternative?

public class Options
{
  public static Localizer _rb;
  public ArgOptions(Localizer rb) { _rb = rb; }

  [Value(0, Required = true, HelpText = _rb.Get("name"))]
  public string? Name{ get; set; }
}
elgonzo commented 1 year ago

https://github.com/commandlineparser/commandline/wiki/Help-Localization