Class CommandLineParser
java.lang.Object
net.sf.jailer.CommandLineParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandLineParses arguments and initializes the parser.static String[]preprocessFileLookup(String[] cArgs) Pre-processes the-file-lookupoptions by replacing each such option and its file-name argument with the first line read from that file.static voidprintAruments(PrintStream out, String[] args, String password) Prints the supplied argument list to the given stream, masking any argument that equals the password.static voidprintUsage(String[] args) Prints out usage.
-
Constructor Details
-
CommandLineParser
public CommandLineParser()
-
-
Method Details
-
parse
Parses arguments and initializes the parser.- Parameters:
cliArgs- the argumentssilent- iftrue, no error messages will be written- Throws:
Exception
-
preprocessFileLookup
Pre-processes the-file-lookupoptions by replacing each such option and its file-name argument with the first line read from that file.- Parameters:
cArgs- the raw command-line arguments- Returns:
- the processed argument array
- Throws:
IOException
-
printUsage
Prints out usage.- Parameters:
args- the original command-line arguments (used only for printing the argument list at the end)
-
printAruments
Prints the supplied argument list to the given stream, masking any argument that equals the password.- Parameters:
out- the stream to print toargs- the command-line arguments to printpassword- the password value to mask, ornullif no masking is needed
-