http://marxsoftware.blogspot.com/2008/11/command-line-parsing-with-apache.html