org.ujac.util.console
Class CommandLineHelper

java.lang.Object
  extended by org.ujac.util.console.CommandLineHelper

public class CommandLineHelper
extends Object

Name: CommandLineHelper
Description: A class providing useful utilities for command line handling.

Author:
lauerc

Constructor Summary
CommandLineHelper()
           
 
Method Summary
static int parseOptions(String[] args, Map options)
          Parses the command line argument list for options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineHelper

public CommandLineHelper()
Method Detail

parseOptions

public static final int parseOptions(String[] args,
                                     Map options)
Parses the command line argument list for options.

Parameters:
args - The command line argument list.
options - The option map to fill.
Returns:
The index of the first non option argument.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.