net.sf.clichart.main
Class OptionParser

java.lang.Object
  extended by net.sf.clichart.main.OptionParser

public class OptionParser
extends java.lang.Object

Used to parse the command line into options and arguments.

Note: This class refers to the options parsed from the command-line as Options, while the Jakarta commons CLI API uses the word to mean option definitions. The commons usage is represented with a fully-qualified class name in this class.

Author:
johnd

Constructor Summary
OptionParser()
           
 
Method Summary
 Options getOptions(java.lang.String[] args)
           
 void showHelp(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionParser

public OptionParser()
Method Detail

getOptions

public Options getOptions(java.lang.String[] args)
                   throws InvalidOptionsException,
                          ShowUsageException
Throws:
InvalidOptionsException
ShowUsageException

showHelp

public void showHelp(java.lang.String message)