Raise an error when setting non-existent options

Hey there!

Recently I’ve been implementing live file uploads using the Phoenix.LiveView.allow_upload/3 function. It accepts lot of options, but if I set a non-existent option (maybe due to a typo), the code doesn’t complain.

Wouldn’t it be nice for dev experience if an error is raised showing the valid options? It could avoid some headaches :slight_smile:.

Note that it’s not specific to live view, any function that accept options could have this behavior.