Take argument parsing outside error handler.