File: Program.cs
Web Access
Project: src\src\runtime\src\coreclr\tools\cdac-build-tool\cdac-build-tool.csproj (cdac-build-tool)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.CommandLine;
using System.Threading.Tasks;

namespace Microsoft.DotNet.Diagnostics.DataContract.BuildTool;

public class Program
{
    public static async Task<int> Main(string[] args)
    {
        RootCommand rootCommand = new();
        var verboseOption = new Option<bool>("-v", "--verbose") {Recursive = true, Description = "Verbose"};
        rootCommand.Add(verboseOption);
        rootCommand.Add(new DiagramDirective());
        rootCommand.Add(new ComposeCommand(verboseOption));
        return await rootCommand.Parse(args).InvokeAsync().ConfigureAwait(true);
    }
}