Ubiquity.NET.CommandLine 20.1.8-beta

This is a prerelease version of Ubiquity.NET.CommandLine.
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 4.9.0 or higher.

dotnet add package Ubiquity.NET.CommandLine --version 20.1.8-beta
                    
NuGet\Install-Package Ubiquity.NET.CommandLine -Version 20.1.8-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ubiquity.NET.CommandLine" Version="20.1.8-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ubiquity.NET.CommandLine" Version="20.1.8-beta" />
                    
Directory.Packages.props
<PackageReference Include="Ubiquity.NET.CommandLine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ubiquity.NET.CommandLine --version 20.1.8-beta
                    
#r "nuget: Ubiquity.NET.CommandLine, 20.1.8-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ubiquity.NET.CommandLine@20.1.8-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ubiquity.NET.CommandLine&version=20.1.8-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ubiquity.NET.CommandLine&version=20.1.8-beta&prerelease
                    
Install as a Cake Tool

Ubiquity.NET.CommandLine

Command line parsing support extending System.CommandLine to better isolate the parsing from the app specific validation and execution.

var reporter = new ColoredConsoleReporter(MsgLevel.Information);
if(!ArgsParsing.TryParse<Options>( args, reporter, out Options? options, out int exitCode ))
{
    return exitCode;
}

// ...

// Options is a class that has properties for all parsed commands, arguments and options
// Allowing for validation of them all in context (including each other)
// App can then dispatch behavior based on the commands/options etc... as needed.
// NO ASSUMPTION IS MADE ABOUT THE USE OF COMMANDS NOR THE BEHAVIOR OF THEM. The app
// is entirely in control of how they are used.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
20.1.8-delta 42 9/7/2025
20.1.8-beta 132 9/4/2025