Added --doc flag to build.d.