add stdin and command option support to prompt_toolkit crash version