public static void main(String[] args) { CommandLineArguments cmd = new CommandLineArguments(args); if (!cmd.parse() || cmd.isPrintUsage()) { cmd.usage(); System.exit(1); } try { new Main().constructWordCloud(cmd); } catch (Exception e) { e.printStackTrace(); System.exit(1); } }