Handle -p and -k opts in bin.