rebase: use cmdutil.check_at_most_one_arg() for --confirm/--dry-run
I've also updated the helper to work with the hyphenated --dry-run option.
Differential Revision: https://phab.mercurial-scm.org/D7641