fixing DOS line endings, and printing the error message if
command-line parsing failed