Set return code in command line version.