()
| 233 | } |
| 234 | |
| 235 | private static Options getOptions() { |
| 236 | Option help = Option.builder("h").longOpt("help") |
| 237 | .hasArg(false) |
| 238 | .desc("Provide help") |
| 239 | .build(); |
| 240 | Option linesOpt = Option.builder("n").longOpt("lines") |
| 241 | .argName("LINES") |
| 242 | .desc("Sets lines of data to be printed") |
| 243 | .hasArg() |
| 244 | .build(); |
| 245 | |
| 246 | Options options = new Options() |
| 247 | .addOption(help) |
| 248 | .addOption(linesOpt); |
| 249 | return options; |
| 250 | } |
| 251 | |
| 252 | private static void printHelp(){ |
| 253 | Options opts = getOptions(); |
no test coverage detected