Is git ok with passing `--dry-run` after the name?  I think it is, even though strictly speaking it doesn't match the signature:

    git remote prune [-n | --dry-run] <name>