http://www.iol.ie/~padraiga/cmdline.html