Moving command line handling code out of the bin and into the lib's file for CommandLine.