I thought there was a way to do this, and that I'd stumbled on it before. I have read these answers but they're not what I'm talking about:
Programmatically pass arguments to grunt task?
Accessing the process / environment from a grunt template
I also looked at the grunt docs but it isn't there:
https://github.com/gruntjs/grunt/wiki/Configuring-tasks
Is there a syntax like this?
grunt.task.run 'htmlmin:allFiles:collapseWhitespace=true'