<refactor>

This commit is contained in:
2022-12-05 20:22:18 +08:00
parent 7a0efaf015
commit 3cb3b13f98
22 changed files with 70 additions and 25 deletions

View File

@ -2,7 +2,7 @@ using TextCopy;
namespace Dot.Guid;
public sealed class Main : Tool<Option>
public sealed class Main : ToolBase<Option>
{
public Main(Option opt) : base(opt) { }

View File

@ -1,7 +1,7 @@
namespace Dot.Guid;
[Verb("guid", HelpText = nameof(Str.GuidTool), ResourceType = typeof(Str))]
public class Option : IOption
public class Option : OptionBase
{
[Option('u', "upper", HelpText = nameof(Str.UseUppercase), Default = false, ResourceType = typeof(Str))]
public bool Upper { get; set; } //normal options here