dwatteau / scummtr

Fan translation tools for SCUMM engine games
MIT License
23 stars 4 forks source link

Make a fatal error when unknown flags are used #40

Closed dwatteau closed 2 years ago

dwatteau commented 2 years ago

Sometimes I do this, by mistake:

scummrp -g monkey2 -of tmp.txt

i.e. I call scummrp instead of scummtr.

The problem is that scummrp doesn't complain if you give it a -f tmp.txt option, even if it doesn't have any -f option.

So, we should probably error out when someone tries to use an unknown option, because it's quite likely that the user made a mistake.

dwatteau commented 2 years ago

Done in commit 6d7c072ad4b1c81ba9f91a21b060205be25cd073.