using System;
namespace BinaryDad.Extensions
{
///
/// Binds data from command line flags to attached property. In the example, [("context")] public string Context { get; set; }, a command of "command.exe -context Production" will set Context property equal to "Production".
///
public class CommandFlagAttribute : Attribute
{
public string Flag { get; }
///
/// The name of the flag, without the preceding dash (-)
///
///
public CommandFlagAttribute(string flag)
{
Flag = flag;
}
}
}