Handle version and help in the shell.