Add argument --on-dup for specifying different duplicates handling