branches: 1.1.2; 1.1.4;Split option parsing into its own routine so that it can be usedby other consumers as well.