forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
20 lines (17 loc) · 736 Bytes
/
Copy pathProgram.cs
File metadata and controls
20 lines (17 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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)
{
CliRootCommand rootCommand = new();
var verboseOption = new CliOption<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);
}
}