mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-26 13:12:50 +08:00
16 lines
431 B
C#
16 lines
431 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Spectre.Console.Cli;
|
|
|
|
namespace Spectre.Console.Tests.Data
|
|
{
|
|
public sealed class NoDescriptionCommand : Command<EmptyCommandSettings>
|
|
{
|
|
[CommandOption("-f|--foo <VALUE>")]
|
|
public int Foo { get; set; }
|
|
|
|
public override int Execute([NotNull] CommandContext context, [NotNull] EmptyCommandSettings settings)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
} |