bpiwowar.argparser.handlers
Class HelpHandler

java.lang.Object
  extended by bpiwowar.argparser.handlers.Handler
      extended by bpiwowar.argparser.handlers.HelpHandler

public class HelpHandler
extends Handler

Author:
bpiwowar

Constructor Summary
HelpHandler()
           
 
Method Summary
 boolean isHelpOption()
          Is this a help option?
 int parse(ArgParser argParser, String[] args, int idx)
          Parse the arguments from the current index
 
Methods inherited from class bpiwowar.argparser.handlers.Handler
add, getLimitChecker, getLimitChecker, getRangeChecker, processAnnotations, setPrefix, updateRangeChecker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpHandler

public HelpHandler()
Method Detail

isHelpOption

public boolean isHelpOption()
Description copied from class: Handler
Is this a help option?

Overrides:
isHelpOption in class Handler
Returns:
true if the option is help option

parse

public int parse(ArgParser argParser,
                 String[] args,
                 int idx)
Description copied from class: Handler
Parse the arguments from the current index

Specified by:
parse in class Handler
Parameters:
argParser - the argument parser
args - The set of arguments
idx - The index of the next argument at process


Copyright © 2013. All Rights Reserved.