Handle -m option in case of merge command