command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

Command line parsing, invocation, and rendering of terminal output.

Results 409 command-line-api issues
Sort by recently updated
recently updated
newest added

Following the [getting started tutorial](https://learn.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial): ```c# using System.CommandLine; namespace CommandLineTest; internal class Program { private static async Task Main(string[] args) { var fileOption = new Option( name: "--file", description: "The...

I'm evaluating System.CommandLine and this seems like basic functionality. For simple console programs I want to be able declaratively add an additional alias with a short form of the parameter...

enhancement
Area-App Models
Area-DragonFruit

This PR aims to address https://github.com/dotnet/command-line-api/issues/2343 by adding help options to alll comands in the tree and includes tests. Would love any thoughts or feedback as this is my first...

Powderhouse

When do you guys plan to update the versions in the public nuget? The latest one is 2.0.0-beta4.22272.1, which has more than 2 years. I see that you have a...

PipleinePhases handle the ordering of subsystems. The underlying assumptions are: * There is a specific order in which subsystems should run * Almost all CLI authors, and many extension authors...

Powderhouse

@keboo correctly questioned the behavior or the `NotRun` method of `PipelineResult` which did nothing. In the current design, this method could be removed (it is currently called from `CliSubstem`) or...

Powderhouse

We create a `StreamReader` via `File.OpenText`, but never `Dispose()` it. Wrap it in a `using` statement to automatically `Dispose()` it when `TryLoad(TextReader, ...)` is done using it.

There are a few mentions of `tokenList` left in `Tokenizer.Tokenize` and they should be renamed to remove the type "List" so that the naming conforms to the conventions of the...

Why are we inferring the root command when it is required to be passed into the `Tokenizer.Tokenize` call? The logic doesn't really make much sense because on one hand you...

When calling `Tokenizer.Tokenize`, I'm not sure if there is a reason for why the `CliCommand rootCommand` is required when it is already set in `CliConfiguration`. Also, why is `CliCommand` the...