For updates and more see

Class AutoHelpParser

  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
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


public AutoHelpParser()
Method Detail


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


public void printUsage()


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

For updates and more see

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.