This commit is contained in:
2022-12-14 17:14:54 +08:00
parent 51943833ed
commit 50bdf223ed
30 changed files with 225 additions and 78 deletions

View File

@ -9,28 +9,24 @@ internal class DirOption : OptionBase
[Localization(typeof(Str))]
public IEnumerable<string> ExcludeRegexes { get; set; }
[CommandOption("-f|--filter")]
[Description(nameof(Str.FileSearchPattern))]
[Localization(typeof(Str))]
[DefaultValue("*")]
public string Filter { get; set; }
[CommandOption("-d|--max-depth")]
[Description(nameof(Str.MaxRecursionDepth))]
[Localization(typeof(Str))]
[DefaultValue(int.MaxValue)]
public int MaxRecursionDepth { get; set; }
[CommandArgument(0, "[path]")]
[Description(nameof(Str.FolderPath))]
[Localization(typeof(Str))]
[DefaultValue(".")]
public string Path { get; set; }
[CommandOption("-w|--write")]
[Description(nameof(Str.WriteMode))]
[Localization(typeof(Str))]