| 2112 | return self.version_help_text() + "\n" + self.key_help_text() |
| 2113 | |
| 2114 | def version_help_text(self) -> str: |
| 2115 | help_message = _( |
| 2116 | """ |
| 2117 | Thanks for using bpython! |
| 2118 | |
| 2119 | See http://bpython-interpreter.org/ for more information and http://docs.bpython-interpreter.org/ for docs. |
| 2120 | Please report issues at https://github.com/bpython/bpython/issues |
| 2121 | |
| 2122 | Features: |
| 2123 | Try using undo ({config.undo_key})! |
| 2124 | Edit the current line ({config.edit_current_block_key}) or the entire session ({config.external_editor_key}) in an external editor. (currently {config.editor}) |
| 2125 | Save sessions ({config.save_key}) or post them to pastebins ({config.pastebin_key})! Current pastebin helper: {config.pastebin_helper} |
| 2126 | Reload all modules and rerun session ({config.reimport_key}) to test out changes to a module. |
| 2127 | Toggle auto-reload mode ({config.toggle_file_watch_key}) to re-execute the current session when a module you've imported is modified. |
| 2128 | |
| 2129 | bpython -i your_script.py runs a file in interactive mode |
| 2130 | bpython -t your_script.py pastes the contents of a file into the session |
| 2131 | |
| 2132 | A config file at {config.config_path} customizes keys and behavior of bpython. |
| 2133 | You can also set which pastebin helper and which external editor to use. |
| 2134 | See {example_config_url} for an example config file. |
| 2135 | Press {config.edit_config_key} to edit this config file. |
| 2136 | """ |
| 2137 | ).format(example_config_url=EXAMPLE_CONFIG_URL, config=self.config) |
| 2138 | |
| 2139 | return f"bpython-curtsies version {__version__} using curtsies version {curtsies_version}\n{help_message}" |
| 2140 | |
| 2141 | def key_help_text(self) -> str: |
| 2142 | NOT_IMPLEMENTED = ( |