minor refactor (start proper CLI handling for DocGenerator)