Don't crash on an unrecognized command-line option

Instead, print a warning.
Print version with --version option

Invoking the progam with --version or -v now prints the version
information to the terminal.

Thanks to Rowen Bartax for the suggestion.