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

Right now, if you have: ```cs public class UrlOption : Option { public UrlOption() : base("--url") { Required = true; } } ``` an `InvalidOperationException` is thrown, with the message:...

As per the title. I've had a quick look through the code and I think this is because it generates the list of possible tokens from the children of the...

bug
help wanted

Please add Finnish translations of System.CommandLine strings like "Options:" and "Required command was not provided." An application would have been able to provide the translations to System.CommandLine 2.0.0-beta4.22272.1, but this...

bug
Area-Localization

This does both of * add untriaged label to new/non-milestoned issues * adds issue to Triage milestone but we can change the behaviors around easily.

Ok, this is a bit of a vibe-coded fever dream. I was looking at #2574 and wondering why we had to keep patching this list. IParseable/ISpanParseable have been in the...

System.CommandLine version: 2.0.0-beta6.25320.118 Parsing fails in the (rather) unusual circumstance of a collection-type option (like _Option\_) with an arity of _ExactlyOne_ or _ZeroOrOne_. ```C# var opt = new Option("--option1") {...

bug
Area-Parser and Binder

System.CommandLine version: 2.0.0-beta6.25320.118 Having a CLI with only a single-dash option `-s` that accepts exactly one value, and providing a commandline `-s foo bar` with an superfluous value "_bar_" causes...

bug

I have a Windows Forms application which also need to have command line options. When the application is started with command line options, it would not load a gui but...

I want to add a custom help section after OptionsSection. As of System.CommandLine 2.0.0-beta4.22272.1, HelpBuilder.Default.GetLayout() returns the sections in this order: The documentation ["Add or replace help sections"](https://learn.microsoft.com/en-us/dotnet/standard/commandline/customize-help#add-or-replace-help-sections) suggests using...

bug
Area-Help