public class Main
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.ArrayList<java.lang.String> |
errors |
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<java.io.File> |
collectFiles(java.io.File dir,
java.io.FilenameFilter filter,
boolean recurse) |
static void |
main(java.lang.String[] cliArgs)
Not supported options:
|
static java.util.ArrayList<java.lang.String> |
parseConsoleOptions(java.util.ArrayList<java.lang.String> args)
This method parses the CommandLine options that have no bearing on the actual formatting, and will ONLY be parsed when coming from the command line.
|
public static void main(java.lang.String[] cliArgs)
throws java.io.IOException
--suffix=#### --suffix=none / -n --exclude=#### --errors-to-stdout / -X --preserve-date / -Z --verbose / -v --formatted / -Q --quiet / -q
cliArgs - java.io.IOExceptionpublic static java.util.ArrayList<java.lang.String> parseConsoleOptions(java.util.ArrayList<java.lang.String> args)
args - A list with all of the parsed options removed. leaving only things for the OptParser to go through.public static java.util.ArrayList<java.io.File> collectFiles(java.io.File dir,
java.io.FilenameFilter filter,
boolean recurse)
dir - Directory to search infilter - Filter to apply to files. May be null to accept all the file names.recurse - If subdirectopries should be recursed through or not.