More elegant way to obtain all origin branches
Parse command-line args and checkout appropriate branches