This repository is intended to provide NDesk.Options by package registry server for Unity PackageManager because of missing original package in Unity PackageManager and because it is used by some other ANU packages.
----
NDesk.Options
$3
---
| | |
|--------------|----------------------|
| CREATED BY: | [Latency McLaughlin] |
| UPDATED: | 11/28/2018 |
| FRAMEWORK: | [.NET]Framework 4.7.2, [.NET]Standard 2.0, [.NET]Core 2.1 (
Latest) |
| LANGUAGE: | [C#] (v7.3) |
| OUTPUT TYPE: | [API] |
| SUPPORTS: | [Visual Studio] 2017, 2015, 2013, 2012, 2010, 2008 |
| TAGS: | [.NET], [NuGet], [MyGet], [API], [C#], [Visual Studio] |
| STATUS: |

 |
| LICENSE: |
 |
| VERSION: |
 |
Navigation
*
Introduction
*
History
*
Solution
*
Usage
*
Installation
*
License
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:
See:
http://www.ndesk.org/Options
``
csharp
var verbose = 0;
var show_help = false;
var names = new List ();
var p = new OptionSet () {
{ "v|verbose", v => { if (v != null) ++verbose; } },
{ "h|?|help", v => { show_help = v != null; } },
{ "n|name=", v => { names.Add (v); } },
};
`
`
csharp
int verbose = 0;
bool show_help = false;
List names = new List ();
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); });
``
This library can be installed using NuGet found
here.
[MIT LICENSE]
[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job.)
[.NET]:
[Console Application]:
[API]:
[C#]:
[DLL]:
[Latency McLaughlin]:
[MIT License]:
[MyGet]:
[NuGet]:
[Visual Studio]:
[MIT LICENSE]: