PHP CLI arguments

first pass - it works. Now to clean it up.