NDesk.Options.Core
1.2.6
See the version list below for details.
dotnet add package NDesk.Options.Core --version 1.2.6
NuGet\Install-Package NDesk.Options.Core -Version 1.2.6
<PackageReference Include="NDesk.Options.Core" Version="1.2.6" />
paket add NDesk.Options.Core --version 1.2.6
#r "nuget: NDesk.Options.Core, 1.2.6"
// Install NDesk.Options.Core as a Cake Addin #addin nuget:?package=NDesk.Options.Core&version=1.2.6 // Install NDesk.Options.Core as a Cake Tool #tool nuget:?package=NDesk.Options.Core&version=1.2.6
NDesk.Options
An option parser for C#.
CREATED BY: | Latency McLaughlin |
UPDATED: | 11/28/2018 |
FRAMEWORK: | .NETStandard 2.1, .NETCore 6.0, .NETCore 7.0, .NETCore 8.0 (Latest) |
LANGUAGE: | C# (v12) |
OUTPUT TYPE: | API |
SUPPORTS: | Visual Studio 2022, 2019, 2017, 2015, 2013, 2012, 2010, 2008 |
TAGS: | .NET, NuGet, MyGet, API, C#, Visual Studio |
STATUS: | |
LICENSE: | |
VERSION: |
<hr>
Navigation
- <a href="#introduction">Introduction</a>
- <a href="#history">History</a>
- <a href="#solution">Solution</a>
- <a href="#usage">Usage</a>
- <a href="#installation">Installation</a>
- <a href="#license">License</a>
<hr>
<h2><a name="introduction">Introduction</a></h2>
It takes advantage of C# features such as collection initializers and lambda delegates to provide a short, concise specification of the option names to parse, whether or not those options support values, and what to do when the option is encountered. It's entirely callback based:
<h2><a name="history">History</a></h2>
See: <a href="http://www.ndesk.org/Options">http://www.ndesk.org/Options</a>
<h2><a name="usage">Usage</a></h2>
var verbose = 0;
var show_help = false;
var names = new List<string> ();
var p = new OptionSet () {
{ "v|verbose", v => { if (v != null) ++verbose; } },
{ "h|?|help", v => { show_help = v != null; } },
{ "n|name=", v => { names.Add (v); } },
};
int verbose = 0;
bool show_help = false;
List<string> names = new List<string> ();
OptionSet p = new OptionSet ()
.Add ("v|verbose", delegate (string v) { if (v != null) ++verbose; })
.Add ("h|?|help", delegate (string v) { show_help = v != null; })
.Add ("n|name=", delegate (string v) { names.Add (v); });
<h2><a name="installation">Installation</a></h2>
This library can be installed using NuGet found here.
<h2><a name="license">License</a></h2>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on NDesk.Options.Core:
Package | Downloads |
---|---|
OnixCore
Package Description |
|
TJC.ConsoleApplication
Console Application Utilities |
|
Pickles.CommandLine.net4
**Pickles** is an open source **living documentation** generator that works on feature files written in the *Gherkin* language, popularized in tools like *Cucumber* and *SpecFlow*. *Pickles* can be incorporated into your build process to produce living documentation in a format that is more accessible to your clients. *Gherkin* language files are written in plain text and stored in your source folder. This can make them inaccessible to clients who may not know how to work with source control or who are not interested in seeing all of the source code, just the features. *Pickles* can produce output in different formats: - Static HTML: a set of HTML files with minimal JavaScript - Dynamic HTML: a JavaScript-rich single page app with integrated search - Word: Microsoft Word - Excel: Microsoft Excel - JSON: a custom JSON format - Markdown: a simple output format Optionally, *Pickles* can **integrate test results**, so that your stakeholders know which scenarios pass validation. *Pickles* supports these test formats: - NUnit - MSTest - XUnit - SpecRun - Cucumber JSON |
GitHub repositories (8)
Showing the top 5 popular GitHub repositories that depend on NDesk.Options.Core:
Repository | Stars |
---|---|
akkadotnet/akka.net
Canonical actor model implementation for .NET with local + distributed actors in C# and F#.
|
|
codebude/QRCoder
A pure C# Open Source QR Code implementation
|
|
chronoxor/NetCoreServer
Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
|
|
uholeschak/ediabaslib
.NET BMW and VAG Ediabas interpreter library
|
|
Zarbuz/FileToVox
Tool for convert files into Magicavoxel file
|
Update target framework to include .NET 8.0.