Brilliant ideas can be painfully obvious in retrospect. They'll leave you thinking, "Why didn't I think of that?!"
docopt is that for parsing CLI arguments. It generates an argument parser based on the application's help message (which you have to write anyway).
Watch the first few minutes of the video below and you'll see exactly how awesome this is:
Check out the GitHub org to see all the goods.