org.kit.furia
Class AbstractFuriaChanCommandLine

java.lang.Object
  extended by org.kit.furia.AbstractFuriaChanCommandLine
Direct Known Subclasses:
BytecodeFrag, FuriaChan

public class AbstractFuriaChanCommandLine
extends java.lang.Object


Constructor Summary
AbstractFuriaChanCommandLine()
           
 
Method Summary
static org.apache.commons.cli.CommandLine getCommandLine(org.apache.commons.cli.Options options, java.lang.Class c, java.lang.String[] args)
          Parses the array of options as received in main() and returns a CommandLine object that makes it easier to analyze the commands.
static void initLogger()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFuriaChanCommandLine

public AbstractFuriaChanCommandLine()
Method Detail

initLogger

public static void initLogger()

getCommandLine

public static org.apache.commons.cli.CommandLine getCommandLine(org.apache.commons.cli.Options options,
                                                                java.lang.Class c,
                                                                java.lang.String[] args)
                                                         throws org.apache.commons.cli.ParseException,
                                                                org.ajmm.obsearch.example.HelpException
Parses the array of options as received in main() and returns a CommandLine object that makes it easier to analyze the commands.

Parameters:
options - The options object (generated from initCommandLine(...))
c - The class that will be used for the name of the program.
args - Arguments of the command line (as received in main(...))
Returns:
A CommandLine object ready to parse commands
Throws:
org.apache.commons.cli.ParseException - If the given arguments have syntax errors
org.ajmm.obsearch.example.HelpException - If the user wants "help" we generate an exception


Copyright © 2008 Arnoldo Jose Muller Molina. All Rights Reserved.