buildman: Move the command line code into its own file