Skip to main content
CommandLineSwitchParser package icon

CommandLineSwitchParser

This is a simple parser for command line options on .NET Framewrok & .NET Core. What you should do is only define your option class and write code like "var option = CommandLineSwicth.Parse<YourOptionClass>(ref args);". There is no need to annotate your option class with any attributes.

Total Downloads
20.6K
20,608
Published
Sep 28, 2017
Latest stable version

Install

.NET CLI
dotnet add package CommandLineSwitchParser --version 1.0.0
Package Manager Console
Install-Package CommandLineSwitchParser -Version 1.0.0
PackageReference
<PackageReference Include="CommandLineSwitchParser" Version="1.0.0" />

Frameworks

.NETFramework4.5 .NETStandard1.1

Dependencies

NETStandard.Library
.NETStandard1.1
[1.6.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.