1.6.0.77 beta

Rating: No reviews yet
Downloads: 169
Released: Nov 9, 2009
Updated: Nov 9, 2009 by gsscoder
Dev status: Beta Help Icon

Recommended Download

Source Code libcmdline-1.6.0.77-beta-src.zip
source code, 250K, uploaded Nov 9, 2009 - 91 downloads

Other Available Downloads

Application libcmdline-1.6.0.77-beta-bin.zip
application, 281K, uploaded Nov 9, 2009 - 39 downloads
Documentation libcmdline-1.6.0.77-beta-doc.zip
documentation, 132K, uploaded Nov 9, 2009 - 39 downloads

Release Notes

Version 1.6.0.77 (beta) introduces support for nullable types and continues refactoring of test code.

Updates

  1. Now you can define option fields using nullable types (int?, double?, Nullable<T>, etc).
  2. The short name of option attributes must be a string of one character.
  3. Minor internal refactoring.
  4. Refactoring of unit test code.

Nullable Types

Adding a trailing question mark to a value type you give it the chance to accept null values. You can learn more about the topic here. Follows a sample code fragment.

C#:
class Options
{
    // ...
    [Option(null, "lenght", HelpText = "The maximum number of bytes to process.")]
    public int? MaximumLenght = null;
    // ...
}

One Character Short Options

All option's attributes, when specified, will require a one character string in short name. Violating this rule will raise an exception (System.ArgumentException).

C#:
// allowed
[Option("i", "input", Required = true, HelpText = "Input file to read.")]
public string InputFile = null;

// allowed
[Option(null, "input", Required = true, HelpText = "Input file to read.")]
public string InputFile = null;

// not allowed
[Option("inp", "input", Required = true, HelpText = "Input file to read.")]
public string InputFile = null;

ChangeLog

You can read more details in the section of change log relative to this release.

Reviews for this release

No reviews yet for this release.