Add command line parsing

With --help, --version and error reporting if the user provides the
wrong number of files on the command line.