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