changed deprecated -rm option to --rm

changed deprecated -rm option to --rm
Merge pull request #5804 from joelhandwell/patch-1

changed deprecated -rm option to --rm