mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
18 lines
490 B
C#
18 lines
490 B
C#
using System.Collections.Generic;
|
|
using CliFx.Attributes;
|
|
|
|
namespace CliFx.Tests.Commands
|
|
{
|
|
[Command("cmd")]
|
|
public class WithRequiredOptionsCommand : SelfSerializeCommandBase
|
|
{
|
|
[CommandOption("opt-a", 'a', IsRequired = true)]
|
|
public string? OptA { get; set; }
|
|
|
|
[CommandOption("opt-b", 'b')]
|
|
public int? OptB { get; set; }
|
|
|
|
[CommandOption("opt-c", 'c', IsRequired = true)]
|
|
public IReadOnlyList<char>? OptC { get; set; }
|
|
}
|
|
} |