command-line-api
command-line-api copied to clipboard
Command line parsing, invocation, and rendering of terminal output.
This pull request updates the following dependencies [marker]: (Begin:272aed7a-a016-4fc1-8897-08d8446df6cf) ## From https://github.com/dotnet/arcade - **Subscription**: [272aed7a-a016-4fc1-8897-08d8446df6cf](https://maestro.dot.net/subscriptions?search=272aed7a-a016-4fc1-8897-08d8446df6cf) - **Build**: [20250602.2](https://dev.azure.com/dnceng/internal/_build/results?buildId=2721828) - **Date Produced**: June 2, 2025 9:40:50 PM UTC - **Commit**: [0d52a8b262d35fa2fde84e398cb2e791b8454bd2](https://github.com/dotnet/arcade/commit/0d52a8b262d35fa2fde84e398cb2e791b8454bd2)...
Sorry if this is obvious, but I was wondering what the suggested migration path would look like for customized help layouts, now that the HelpBuilder is internal: https://github.com/dotnet/command-line-api/commit/8363e585244577511e5178bc441fbec7cf9c6053 https://github.com/dotnet/runtime/pull/116065 as...
```cs using System.CommandLine; using System.CommandLine.Hosting; await BuildCommandLine() .UseHost() .InvokeAsync(args); static CommandLineConfiguration BuildCommandLine() { var root = new RootCommand(); var sub = new Command("sub", "A subcommand that does something."); sub.SetAction(result =>...
**Expected behavior** If a command has no handler, but has subcommands, it should show the signature including its subcommands like in beta3, or at least there should be a switch...
The docs are still old and show outdated examples: https://learn.microsoft.com/en-us/dotnet/standard/commandline/
Hi, It would be helpful to have a flag or property to control whether the **description** is included in the generated HelpText output. In our use case, we are using...
In both cases these are set by the configuration of the command line, but are then only available internally. If you access the `ParseResult` they are hidden. For instance, I...
Align `System.CommadLine.Hosting` model with the way ASP.NET Core uses _Generic Host_. It should be possible to configure CommandLineBuilder like this: ```csharp public static IHostBuilder CreateHostBuilder(string[] args) => CommandLineHost.CreateDefaultBuilder(args) .ConfigureAppConfiguration((hostingContext, config)...
I'd like to have `--version` output some additional information, like in these: ``` PS C:\> MSBuild.exe /version Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation....
In the example bellow I was expecting that running `cli` without specifying a subcommand would fail with the error "Required command was not provided." as it happens without using the...