Fix parser refactor in main (#865)

* Fix parser refactor in main

Parser construction was refactored to a separate function, however `main` still needs access
to that instance to be able to use the ArgumentParser.error interface.

* Update __init__.py
1 file changed