Added detection of trailing whitespace on a line.
Added parsing of command-line arguments with options.
Added detection of duplicate files when parsing.