a bit of option parsing

I actually needed--and tested--only 'destination' option but added a few more that were straightforward.