org.apache.qpid.junit.extensions.util
Class CommandLineParser

java.lang.Object
  extended by org.apache.qpid.junit.extensions.util.CommandLineParser

public class CommandLineParser
extends Object

CommandLineParser provides a utility for specifying the format of a command line and parsing command lines to ensure that they fit their specified format. A command line is made up of flags and options, both may be refered to as options. A flag is an option that does not take an argument (specifying it means it has the value 'true' and not specifying it means it has the value 'false'). Options must take arguments but they can be set up with defaults so that they take a default value when not set. Options may be mandatory in wich case it is an error not to specify them on the command line. Flags are never mandatory because they are implicitly set to false when not specified.

Some examples command line are: