An improved getopt example.