NDesk.Options.Core 1.2.8

dotnet add package NDesk.Options.Core --version 1.2.8
NuGet\Install-Package NDesk.Options.Core -Version 1.2.8
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="NDesk.Options.Core" Version="1.2.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NDesk.Options.Core --version 1.2.8
#r "nuget: NDesk.Options.Core, 1.2.8"
#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.
// Install NDesk.Options.Core as a Cake Addin
#addin nuget:?package=NDesk.Options.Core&version=1.2.8

// Install NDesk.Options.Core as a Cake Tool
#tool nuget:?package=NDesk.Options.Core&version=1.2.8

NDesk.Options.Core

A callback-based program option parser for C#.


Description
CREATED BY: Latency McLaughlin
UPDATED: 4/8/2024
FRAMEWORK: [net452], [netstandard2.0], [netstandard2.1] ([Latest])
LANGUAGE: C# preview
OUTPUT TYPE: Library API
SUPPORTS: Visual Studio
GFX SUBSYS: [None]
TAGS: [NDesk.Options C#]
STATUS .NET
LICENSE: License
VERSION: GitHub Release

<hr>

  • <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>

The source code for the site is licensed under the MIT license, which you can find in the MIT-LICENSE.txt file.

All graphical assets are licensed under the Creative Commons Attribution 3.0 Unported License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on NDesk.Options.Core:

Package Downloads
OnixCore

Package Description

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 (7)

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
Zarbuz/FileToVox
Tool for convert files into Magicavoxel file
emoose/xvdtool
A command-line tool for manipulating Xbox One XVD & XVC files.
Version Downloads Last updated
1.2.8 2,355 4/9/2024
1.2.6 6,973 1/22/2024
1.2.5 550,492 4/13/2019
1.2.4 5,279 11/30/2018

Update target framework to include .NET 9.0.