fix --version to work without a method

Showing the error message with no method broke --version.