The link you’ve giving is for the function add_rewrite_tag()
not WP_Rewrite::add_rewrite_tag()
Codex.
The later documentation is a bit misleading because it links the other global function (which has two arguments) as if it was the same. But the function you’re referring to has three arguments.
I updated the codex a bit to make this more clear.