File: src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs
Web Access
Project: src\src\Components\benchmarkapps\Wasm.Performance\ConsoleHost\Wasm.Performance.ConsoleHost.csproj (Wasm.Performance.ConsoleHost)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Collections.Generic;
using System.Linq;
 
namespace Microsoft.Extensions.CommandLineUtils;
 
internal sealed class CommandArgument
{
    public CommandArgument()
    {
        Values = new List<string>();
    }
 
    public string Name { get; set; }
    public bool ShowInHelpText { get; set; } = true;
    public string Description { get; set; }
    public List<string> Values { get; private set; }
    public bool MultipleValues { get; set; }
    public string Value
    {
        get
        {
            return Values.FirstOrDefault();
        }
    }
}