Option flags in upgrade should be unique

Previously there were two -d options, which is suboptimal.