(Options options)
| 36 | }; |
| 37 | |
| 38 | private void usage(Options options) { |
| 39 | String header = "Splits CSV file." + "\nReads the file as a line based file creating new files that will not exceed the specified maximum size."; |
| 40 | String footer = "NOTE: The file is expected to contain lines separated by newline characters."; |
| 41 | |
| 42 | HelpFormatter formatter = HelpFormatter.builder().get(); |
| 43 | try { |
| 44 | formatter.printHelp(this.getClass().getName(), header, options, footer, true); |
| 45 | } catch (IOException e) { |
| 46 | // TODO Auto-generated catch block |
| 47 | e.printStackTrace(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | private CommandLine parseCommandLine(String[] args) { |
| 52 | // create the command line parser |
no test coverage detected