Posted on Sunday August 8, 2010

CommandOptions - interactive console application command parser

This is a class based on the Novell Options class for easily parsing commands and their arguments for console applications that sit and wait for input. I’ve tried to keep it as elegant the Novel Options class, which is aimed at console applications that exit immediately. My adaption is for interactive apps, and restricts you to two types of handler methods - no arguments, and an array of strings as params.

The example below should help to illustrate what it does.

Example usage