Exception thrown when something the annotation on a field is incorrect.
Exception thrown when something the user gives a bad value
Trait for groups of CommandLinePrograms.
Extends ReflectiveBuilder to add support for the arguments annotated with the arg annotation and to use more specific logic to find the appropriate constructor to use to instantiate command line programs.
The program group for the command line programs.
Base class for all exceptions thrown by the command line parsing
Class for parsing the command line when we also have sub-commands.
Class for parsing the command line when we also have sub-commands.
We have two possible entry points:
(1) parseSubCommand() for when we have set of sub-commands, each having their own set of arguments, and we
use the first argument to get the class's simple name (getSimpleName
), and pass the rest of the arguments
to a properly instantiated CommandLineProgramParser to parse the arguments and build an instance of that
class.
(2) parseCommandAndSubCommand for the same case as (1), but when the main program itself also has arguments, which
come prior to the name of the command line program.
To route the arguments to build the appropriate program, the parser searches for a command line program that is a sub-class of SubCommand, and creates a CommandLineProgramParser to parse the args and return an instance of the SubCommand.
Constructor arguments for the sub-command classes or command class can be annotated with com.fulcrumgenomics.sopt.arg while constructors themselves can be annotated with clp. The latter may be omitted, but is extremely useful for grouping related sub-commands and having a common description.
the base class for all sub-commands to display and parse on the command line.
Exception thrown when something internally goes wrong with command line parsing
Various constants and methods for formatting and printing usages and error messages on the command line
Class for parsing the command line for a single command line program.
Class for parsing the command line for a single command line program.
The main entry point is parseAndBuild(). The arguments given to this method should match the annotated arguments to the program's constructor. Constructor arguments can be annotated with com.fulcrumgenomics.sopt.arg while constructors themselves can be annotated with com.fulcrumgenomics.sopt.clp. The latter may be omitted, but is useful for grouping related command line programs and having a common description.
Exception thrown when the user forgets to specify an annotation
Exception thrown when the user forgets to specify an argument
Class that indicates a failure in parsing.
Class that indicates a failure in parsing. An exception and the remaining arguments, if applicable, are provied.
Class that indicates a help option was found.
Class that indicates a successful parsing.
Class that indicates a version option was found.
Exception thrown when something there is user error (never happens)
Exception class that is intended to be used to signal one or more validation errors in command line program constructors, and provide useful messages back to the user.
Exception thrown when trying to convert to specific value
Stores strings used in the usage and error messages
Extends ReflectiveBuilder to add support for the arguments annotated with the arg annotation and to use more specific logic to find the appropriate constructor to use to instantiate command line programs.
the type for the class