case 'd': opt.localdb = optarg; break;
case 'p': opt.pkgdir = optarg; break;
case 'r': opt.repodir = optarg; break;
case 'P': opt.pkgdir = 0; break;
case 'R': opt.repodir = 0; break;
case 'D': opt.localdb = 0; break;
case 'd': opt.localdb = optarg; break;
case 'p': opt.pkgdir = optarg; break;
case 'r': opt.repodir = optarg; break;
case 'P': opt.pkgdir = 0; break;
case 'R': opt.repodir = 0; break;
case 'D': opt.localdb = 0; break;