String newsgroup = args[1];
// Article specifier can be numeric or Id in form <m.n.o.x@host>
String articleSpec = args.length >= 3 ? args[2] : null;
NNTPClient client = new NNTPClient();
client.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out), true));
client.connect(hostname);
if (args.length == 5) { // Optional auth
String user = args[3];
String password = args[4];