CommandLine parses the command line for a description of a set of files and converts it into a list of…