unify `–`(en dash) to `-` when specifying options

Signed-off-by: Xie Shi <georgexsh@gmail.com>
Merge pull request #8970 from georgexsh/hyphen

unify `–`(en dash) to `-` when specifying options