Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Add support for nullable types to OptionSet.Add().

This allows straightforward use of nullable types, e.g.

		int verbosity = 0;
		new OptionSet () {
			{ "v:", (int? v) => verbosity = v.HasValue
				? v.Value : verbosity + 1 },
		}.Parse (new[]{"-v"); // verbosity == 1

	* Specify NDESK_OPTIONS on the compile lines.
	* doc/en/NDesk.Options/OptionSet.xml: Document nullable type support.
	* lib/pkgconfig/ Add -d:NDESK_OPTIONS so that
	  packages using prior versions of NDesk.Options don't see a
	  gratuitous namespace change.
	* src/NDesk.Options/NDesk.Options/Options.cs: Option.Parse<T>() now
	  special-cases nullable type conversion.
	* src/NDesk.Options/NDesk.Options/Options.cs,
	  src/NDesk.Options/Test/NDesk.Options/Utils.cs: Namespace
	  "harmonization" with Mono.Options, so that we can use identical
	  source in each place, thus minimizing the maintenance burden.
latest commit 184cd420db
@jonpryor jonpryor authored
Failed to load latest commit information.
en Add support for nullable types to OptionSet.Add().
.gitignore Fix `make html` target.
doc-template.xsl Improve HTML-generated docs.
ndesk-options-docs.source Monodoc & pkg-config fixes...
prettyprint.js Improve HTML-generated docs.
Something went wrong with that request. Please try again.