1.5 stable

Rating: No reviews yet
Downloads: 232
Released: Jan 8, 2009
Updated: Jan 26, 2009 by gsscoder
Dev status: Stable Help Icon

Recommended Download

Source Code libcmdline-1.5-stable-src.zip
source code, 231K, uploaded Jan 8, 2009 - 95 downloads

Other Available Downloads

Application libcmdline-1.5-stable-bin.zip
application, 164K, uploaded Jan 8, 2009 - 55 downloads
Documentation libcmdline-1.5-stable-doc.zip
documentation, 117K, uploaded Jan 8, 2009 - 64 downloads
Source Code libcmdline-1.5-stable-fix.zip
source code, 114K, uploaded Jan 26, 2009 - 18 downloads

Release Notes

Note

If you use this release, instead of highest stable, remember to donwload (as last) the libcmdline-1.5-stable-fix.zip file and follow simple instructions in the README file (it's very easy: just replace one file and recompile). If you are accustomed to use binaries (without recompiling your own), the fix archive contains these files recompiled for you. More info on this post of my technical blog.

Updates

  • This new release introduces automatic support for enumeration types, minor internal refactoring and unit-test code base refactoring and extension.
  • The sample application was updated for reflect all feature of the library.
  • The source package includes the SandCastle project (shfb) for build the CHM file.

Enumeration Types

Define your own enumeration or use an existing one.
enum FruitTypes
{
    Unknown,
    Apple,
    Banana,
    Pear,
    Raspberry,
    Strawberry
}
Define your option class, target of parsing process.
class Options
{
    /* ... */
    [Option("f", "desktopbg", HelpText = "Image of the fruit to use as desktop background.")]
    public FruitTypes DesktopBackground = FruitTypes.Unknown;
    /* ... */
}
Now make your ParseArguments() method invocation as you always do. At command line level you must omit the enumeration type name: just use the its element name.

.NET/Win32 Platforms:
X:\> SampleApp -f Strawberry

Mono/Unix Platforms:
$ mono SampleApp.exe --desktopbg Pear

Reviews for this release

No reviews yet for this release.