Fix /getopt command to work, for those very rare occasions I need to debug what it's doing.

Author Mere <rift@dokein.co.uk>
Author date 2013-07-13 09:48:07
Author local date 2013-07-13 10:48:07 +0100
Committer Mere <rift@dokein.co.uk>
Committer date 2013-07-13 09:48:07
Committer local date 2013-07-13 10:48:07 +0100
Commit bbf6dfe2933f8886100e049f288ae150b8009be1
Tree ea2554288ac2039011df9a9bcb9ff0a48d9310c0
Parent bae7bc71b43d3ffe305931735502510b13ab254e
Fix /getopt command to work, for those very rare occasions I need to debug what it's doing.

Also switch a globabl to local.