Add support for user-provided hooks and environment variable reads to the cmd_line...