declcmdparser 1.0.0
See the version list below for details.
dotnet add package declcmdparser --version 1.0.0
NuGet\Install-Package declcmdparser -Version 1.0.0
<PackageReference Include="declcmdparser" Version="1.0.0" />
paket add declcmdparser --version 1.0.0
#r "nuget: declcmdparser, 1.0.0"
// Install declcmdparser as a Cake Addin
#addin nuget:?package=declcmdparser&version=1.0.0
// Install declcmdparser as a Cake Tool
#tool nuget:?package=declcmdparser&version=1.0.0
This package contains a powerful, declarative command-line parsing system in a single .cs file. You can include this in any project with almost zero footprint and very easy/readable usage, as shown below. More switch types, including generic ones are coming soon. Example: static void Main(string[] args) { ... args.Process(() => { Console.WriteLine("Print usage here..."); Environment.Exit(-1); }, new CommandLine.Switch("args1", v => saveArgs1Variable = v.First()), new CommandLine.Switch("boolValue1", v => saveBoolValue1 = bool.Parse(v.First())), new CommandLine.Switch("ListOfStringsArgs", v => saveListOfStringArgs = v.ToArray()), new CommandLine.Switch("ComplexArgument", v => { // Excute code here to perform actions with complex argument })); ... }
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.