parse command line arguments in a sane way; script to search for SIN MR availability