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 362 command-line-api issues
Sort by recently updated
recently updated
newest added

It would be great to be able to handle mutually exclusive options. ## Example For example, if I had a command that either took an `--all` option or a `--tenant...

enhancement
help wanted
Area-Parser and Binder

In my use case, both the following invocations are expected. ``` $ myprog --load checkpoint.json $ myprog process --file test.json ``` where the root command `myprog` with the subcommand `process`...

question

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 - **Build**: 20220902.1 - **Date Produced**: September 2, 2022 8:28:24 AM UTC - **Commit**: 87531ff8de2e6501ff85973c9af44953a2c5b687...

I have a WPF application that I want to do some cleanup after the CommandLine invoke call, but I have no way of knowing if --help was invoked or one...

Area-API
Area-Help

With URI protocol activation, the URI of the (custom) protocol will be passed as the first argument on the command line, like this: ``` myapp.exe myscheme://90413064-fa7f-4750-afa6-2f34047042ca ``` How can we...

question

Could we please have NuGet packages updated more frequently? Also, the daily feed [link](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json) in the README doesn't contain the necessary packages. Only these two: - `dotnet-suggest` - `System.CommandLine.Generator`

# System.CommandLine 2.0 Beta 4 We've been working through feedback on the [beta 2](https://github.com/dotnet/command-line-api/issues/1537) and [beta 3](https://github.com/dotnet/command-line-api/issues/1613) releases of System.CommandLine and now we're ready with beta 4. Here's a quick...

[GlobalToolsSuggestionRegistration](https://github.com/dotnet/command-line-api/blob/209b724a3c843253d3071e8348c353b297b0b8b5/src/System.CommandLine.Suggest/GlobalToolsSuggestionRegistration.cs) returns suggestion registrations for all executables in ~/.dotnet/tools/, and `dotnet-suggest` can then run such executables with the `[suggest]` directive even if they have not been explicitly registered. However, supporting...

bug
Area-Completions

I'm making a REPL with `System.CommandLine` and so far it's going great. One thing missing is tab completion. Ideally I could do something like `parser.GetCompletions("tic")`. Is this currently possible? It...

needs documentation

I'm failing to get proper behavior for some cases of tab copletion of multiple arity option. I've simplified my case to following simple repro: ```C# var myCommand = new Command("cmdx");...

bug
Area-Parser and Model Binder