Class CommandLineOptionsParser
- java.lang.Object
-
- org.molgenis.vibe.cli.io.options_digestion.CommandLineOptionsParser
-
public abstract class CommandLineOptionsParser extends Object
Command line options parser.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VibeOptionsparse(String[] args)Digests the command line arguments and stores this in a newly createdVibeOptionsinstance.static voidparse(String[] args, VibeOptions vibeOptions)Digests the command line arguments and stores this in the suppliedVibeOptionsinstance.static voidprintHelpMessage()Prints the help message to stdout.
-
-
-
Method Detail
-
parse
public static VibeOptions parse(String[] args) throws org.apache.commons.cli.ParseException
Digests the command line arguments and stores this in a newly createdVibeOptionsinstance.- Parameters:
args- the command line arguments- Returns:
- a
VibeOptionsthat contains the information from the command line - Throws:
org.apache.commons.cli.ParseException- seeparseCommandLine(String[])&digestCommandLine(CommandLine, VibeOptions)
-
parse
public static void parse(String[] args, VibeOptions vibeOptions) throws org.apache.commons.cli.ParseException
Digests the command line arguments and stores this in the suppliedVibeOptionsinstance.- Parameters:
args- the command line argumentsvibeOptions- in which the digested command line arguments should be stored- Throws:
org.apache.commons.cli.ParseException- seeparseCommandLine(String[])&digestCommandLine(CommandLine, VibeOptions)
-
printHelpMessage
public static void printHelpMessage()
Prints the help message to stdout.
-
-