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

Given the following program: ```csharp public class Program { static async Task Main(InvocationContext invocationContext, string[] args) { var consoleRenderer = new ConsoleRenderer( invocationContext.Console, mode: invocationContext.BindingContext.OutputMode(), resetAfterRender: true); var screen =...

bug
Area-Rendering

I've seen posts talking about doing DI with System.CommandLine, but how late in the line can we bind custom values to arguments or options? And what does the 'line' look...

System.CommandLine is a nice library that convers a lot of edge cases, but in my opinion creating commands (adding handlers) is quite verbose and adds a lot of boilerplate code...

This PR has several fixes to value handling. * General cleanup * Removed attributes on the `CliCommand.Add` method (philosophically opposed to needing to step through code to understand a call...

Powderhouse

Simple application fails to resolve. Program.cs ``` using System.CommandLine; public class SampleCommand : CliCommand //

Unhandled exception. System.InvalidProgramException: Could not find a static entry point 'Main' that accepts option parameters. at Test2!+0x21477 at Test2!+0x227ae --- End of stack trace from previous location --- at Test2!+0x1916f0...

Hi, I have the following command line parameters: ``` static void Main(string[] args) { args = new string[] { "e", "myuser", "mypass", "2020.01.01 01:00", "2021.01.01 01:00" }; var rootCommand =...

When using environment variables in command line, OS resolve these environment variables. **Example:** ``` # Windows --token %token% # Linux --token $token ``` When trying to use the response file,...

Since .NET 7.0 EOL, it's better to stick to LTS version that is till supported. I used LTS instead of LTS to minimize friction between new versions.