Sharpify.CommandLineInterface
1.3.0
See the version list below for details.
dotnet add package Sharpify.CommandLineInterface --version 1.3.0
NuGet\Install-Package Sharpify.CommandLineInterface -Version 1.3.0
<PackageReference Include="Sharpify.CommandLineInterface" Version="1.3.0" />
<PackageVersion Include="Sharpify.CommandLineInterface" Version="1.3.0" />
<PackageReference Include="Sharpify.CommandLineInterface" />
paket add Sharpify.CommandLineInterface --version 1.3.0
#r "nuget: Sharpify.CommandLineInterface, 1.3.0"
#:package Sharpify.CommandLineInterface@1.3.0
#addin nuget:?package=Sharpify.CommandLineInterface&version=1.3.0
#tool nuget:?package=Sharpify.CommandLineInterface&version=1.3.0
CHANGELOG
Version 1.3.0
Argumentsnow contains new methodsTryGetValuesandTryGetValues{T}to get arrays from values, there are overloads for regular and positional arguments, each overload requires astring? separatorthat is used to split the value, as with te regular values,Tneeds to implementIParsable{T}.CliBuildernow has a methodShowErrorCodesthat will enable the error codes next toCliRunnererror outputs, that was previously enabled by default, now it will hide them by default to provide a cleaner experience for users, but the builder now can easily configure this for testing, or if you still want the user to see them.
Usage Note
In case you are writing a cli which has a complex tree to navigate on the way to the execution, such as nested commands, and any single command processing gets verbose, remember that it is possible to create a CliRunner at any point.
This means that you can create objects for the nested commands, inside the top level command you could then forward the positional arguments (or not) if you choose, then use the same builder pattern with CliRunner.CreateBuilder()... and add the nested commands, then execute using the already parsed Arguments object as the CliRunner.RunAsync also has an overload that accepts Arguments.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Sharpify (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 411 | 11/18/2025 |
| 2.0.0 | 208 | 7/15/2025 |
| 1.5.0 | 391 | 11/13/2024 |
| 1.4.0 | 3,674 | 10/21/2024 |
| 1.4.0-Alpha | 137 | 10/10/2024 |
| 1.3.0 | 148 | 7/26/2024 |
| 1.2.2 | 176 | 7/3/2024 |
| 1.2.1 | 173 | 6/4/2024 |
| 1.2.0 | 198 | 3/13/2024 |
| 1.1.0 | 189 | 1/25/2024 |
| 1.0.5 | 192 | 1/22/2024 |
| 1.0.4 | 177 | 1/20/2024 |
| 1.0.3 | 168 | 1/20/2024 |
| 1.0.1 | 191 | 1/15/2024 |
| 1.0.0 | 179 | 1/15/2024 |