extract 'docs' command