handle command line arguments passed to a php script