templates / branches--on commit rebase: factor out command line option processing (cf432ca)
   1: this is just to ensure the directory exists.