Added a command line option to attach to a process (thanks to Matthew Allen).