mwcore-docgen: Use --version option.

See also mediawiki-core I1d5b6266e49a.

Change-Id: I52e3c414fb06ba2fd0ecc76b46cd4250c5e67373