--help and --version only apply as first argument

This fixes external commands that provide their own
help and version subcommands.

Closes #26755.