<feat> 多语言支持

This commit is contained in:
2022-12-01 15:55:14 +08:00
parent 8ad313ff53
commit 7168901bef
19 changed files with 231 additions and 59 deletions

View File

@ -2,10 +2,14 @@ namespace Dot;
public class DirOption : IOption
{
[Option('f', "filter", Required = false, HelpText = nameof(Strings.FileSearchPattern), Default = "*.*"
[Option('f', "filter", HelpText = nameof(Strings.FileSearchPattern), Default = "*.*"
, ResourceType = typeof(Strings))]
public string Filter { get; set; }
[Value(0, HelpText = nameof(Strings.FolderPath), Default = ".", ResourceType = typeof(Strings))]
public string Path { get; set; }
[Option('r', "readonly", HelpText = nameof(Strings.ReadOnly), Default = false, ResourceType = typeof(Strings))]
public bool ReadOnly { get; set; }
}