Ookii.CommandLine is a powerful command line parsing library for .Net applications. It allows you to easily define a set of accepted arguments, and then parse the
command line supplied to your application for those arguments. In addition, it allows you to generate usage help from the arguments that you defined which you can display to the user.
You simply create a custom class whose properties and constructor parameters define the arguments, and Ookii.CommandLine will parse the application's arguments and
create an instance of that class with all the values. Arguments can be optional or required, positional or named, and accept single or multiple values, and much more.
Argument parsing is done using parsing rules that are very similar to how Microsoft Windows PowerShell parses command line arguments.
Install-Package Ookii.CommandLine -Version 2.2.0
dotnet add package Ookii.CommandLine --version 2.2.0
<PackageReference Include="Ookii.CommandLine" Version="2.2.0" />
paket add Ookii.CommandLine --version 2.2.0
This package has no dependencies.