Copy link
Copy Markdown
Contributor
Currently when in the hy REPL, when the user types help, the REPL responds with the default builtins.help message Type help() for interactive help, or help(object) for help about object. This is inconsistent with the syntax of Hy and other REPL features, as quit and exit both display the proper syntax in their respective REPL messages.
This fix adds a HyHelper class for help similar to the HyQuitter class used to override the quit and exit builtins. Besides the corrected prompt using Lisp-like syntax, after executing (help) the user is still dropped into the default PyDoc help environment with normal Python syntax and links to documentation.