diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-10 22:55:56 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-10 22:55:56 -0600 |
| commit | d45eb854fa49916c7643b536ac22eda6268cd9e4 (patch) | |
| tree | 92594856437714a474d7540ca7d162a1771021af /src/slskd/Common/Configuration | |
| parent | 62b44e06b3f311970e8835d647c97de5498f394e (diff) | |
| download | slskd-d45eb854fa49916c7643b536ac22eda6268cd9e4.tar.gz | |
stub reflective mapping
Diffstat (limited to 'src/slskd/Common/Configuration')
| -rw-r--r-- | src/slskd/Common/Configuration/OptionAttribute.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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; } + } +} |
