add error for duplicate key
simplified cmd_parser after normalize_args