commandline icon indicating copy to clipboard operation
commandline copied to clipboard

HelpText different language

Open danijerez opened this issue 2 years ago • 1 comments

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; }
}

danijerez avatar Jan 25 '23 15:01 danijerez

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

elgonzo avatar Jan 25 '23 23:01 elgonzo