How do I pass url parameters to chrome headless?

Simply, this works fine.

chrome --headless --dump-dom test.html

However, this does not work.

chrome --headless --dump-dom test.html?data=test

test.html

<!DOCTYPE html>
<html>
<body>
<p>something</p>
</body>
</html>