This project is read-only.

Ookii.CommandLine 2.0

Rating: No reviews yet
Downloads: 38
Change Set: 5326
Released: Aug 13, 2011
Updated: Aug 14, 2011 by SvenGroot
Dev status: Stable Help Icon

Recommended Download

Application Ookii.CommandLine 2.0
application, 544K, uploaded Aug 14, 2011 - 38 downloads

Release Notes

This release includes the updated command line parser which uses PowerShell-style parsing rules. It has more flexible methods of defining the accepted set of command line arguments and improved usage help generation. This release also introductions support for Shell Commands.

Release contents
This release contains the following:
  • Ookii.CommandLine.dll: the class library binary that you can use with your own applications targetting the Microsoft .Net Framework 2.0 or later (Mono 2.6 or later is also supported).
  • User Guide.html: documentation for this release (also available under Documentation).
  • Documentation.chm: class library documentation for this release
  • The full source code to the Ookii.CommandLine library.
  • Two sample applications (including source code) demonstrating command line argument parsing and shell commands.

What's new
Ookii.CommandLine 2.0 offers the following new features compared to Ookii.CommandLine 1.0:
  • Improved argument parsing:
    • All arguments can be specified by name.
    • Support for using whitespace to separate an argument name from its value.
    • Support for multiple argument name prefixes.
    • Support for using a custom StringComparer for argument name matching (to allow case sensitive or insensitive matching).
    • Support for use a custom CultureInfo for argument value conversion.
    • Non-positional arguments can be required arguments.
  • Properties can be used to define positional arguments.
  • More customizable generation of usage help text.
  • The new shell commands functionality lets you easily create shell utilities with multiple operations that each uses its own command line arguments.
  • The LineWrappingTextWriter class provides support for writing word-wrapped text to any output stream, with greater flexibility than the SplitLines method provided in Ookii.CommandLine 1.0.
  • Targets .Net 2.0 for wider applicability.

Upgrading from Ookii.CommandLine 1.0
Ookii.CommandLine 2.0 has substantial changes from the previous version and is not designed to be backwards compatible. There are changes in argument parsing behavior and API names and usage.

Upgrading an existing project that is using Ookii.CommandLine 1.0 to Ookii.CommandLine 2.0 may require substantial code changes and may change how command lines are parsed.

Reviews for this release

No reviews yet for this release.