From d45eb854fa49916c7643b536ac22eda6268cd9e4 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 10 Feb 2021 22:55:56 -0600 Subject: stub reflective mapping --- src/slskd/Common/Configuration/OptionAttribute.cs | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/slskd/Common/Configuration/OptionAttribute.cs (limited to 'src/slskd/Common/Configuration') diff --git a/src/slskd/Common/Configuration/OptionAttribute.cs b/src/slskd/Common/Configuration/OptionAttribute.cs new file mode 100644 index 00000000..0c42bbf9 --- /dev/null +++ b/src/slskd/Common/Configuration/OptionAttribute.cs @@ -0,0 +1,24 @@ +namespace slskd.Common.Configuration +{ + using System; + + public class OptionAttribute : Attribute + { + public OptionAttribute( + char shortName, + string longName, + string environmentVariable, + string description) + { + ShortName = shortName; + LongName = longName; + EnvironmentVariable = environmentVariable; + Description = description; + } + + public char ShortName { get; set; } + public string LongName { get; set; } + public string EnvironmentVariable { get; set; } + public string Description { get; set; } + } +} -- cgit v1.2.3