I agree, this is basically just ripped from the optparse interface, I just haven't touched it yet for formatting.