(v6.x backport) src: use option parser for expose_internals
Can't show this merge request because the source branch github/fork/sam-github/v6.x-backport-12245 is missing from project rodrigo-test/test-group-nodejs/node. Close this merge request or update the source branch.