summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFileArgumentsProvider.cs
blob: 8fac2d06fd5acaf44212abeab8e80c7e1ba2073d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Fclp;
using PKISharp.WACS.Configuration;

namespace PKISharp.WACS.Plugins.StorePlugins
{
    internal class PfxFileArgumentsProvider : BaseArgumentsProvider<PfxFileArguments>
    {
        public override string Name => "PFX file plugin";
        public override string Group => "Store";
        public override string Condition => "--store pfxfile";

        public override void Configure(FluentCommandLineParser<PfxFileArguments> parser)
        {
            parser.Setup(o => o.PfxFilePath)
                 .As("pfxfilepath")
                 .WithDescription("Path to write the .pfx file to.");
            parser.Setup(o => o.PfxPassword)
                .As("pfxpassword")
                .WithDescription("Password to set for .pfx files exported to the IIS CSS.");
        }
    }
}