For updates and more see jargs.sourceforge.net

jargs.examples.gnu
Class AutoHelpParser

java.lang.Object
  extended by jargs.gnu.CmdLineParser
      extended by jargs.examples.gnu.AutoHelpParser

public class AutoHelpParser
extends CmdLineParser

This example shows how to dynamically create basic output for a --help option.


Nested Class Summary
 
Nested classes/interfaces inherited from class jargs.gnu.CmdLineParser
CmdLineParser.IllegalOptionValueException, CmdLineParser.NotFlagException, CmdLineParser.Option, CmdLineParser.OptionException, CmdLineParser.UnknownOptionException, CmdLineParser.UnknownSuboptionException
 
Constructor Summary
AutoHelpParser()
           
 
Method Summary
 CmdLineParser.Option addHelp(CmdLineParser.Option option, java.lang.String helpString)
           
static void main(java.lang.String[] args)
           
 void printUsage()
           
 
Methods inherited from class jargs.gnu.CmdLineParser
addBooleanOption, addBooleanOption, addDoubleOption, addDoubleOption, addIntegerOption, addIntegerOption, addLongOption, addLongOption, addOption, addStringOption, addStringOption, getOptionValue, getOptionValue, getOptionValues, getRemainingArgs, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoHelpParser

public AutoHelpParser()
Method Detail

addHelp

public CmdLineParser.Option addHelp(CmdLineParser.Option option,
                                    java.lang.String helpString)

printUsage

public void printUsage()

main

public static void main(java.lang.String[] args)

For updates and more see jargs.sourceforge.net

Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.