#5778 introduced this feature in x/tools/cmd/godoc, but it is missing in cmd/doc, which replaces the godoc command line mode. /cc @dmitshur