Use getopt

So it does! Why has nobody pointed this out to me in my code before!?