Skip to content

Conversation

tleonhardt
Copy link
Member

I originally created separate help_* methods for various built-in do_* methods so that:

  • The Sphinx docs could use the do_* docstring which could have extra reStructuredText markup embedded
  • The built-in help command could use the text from the help_* method

This seemed like a good idea at the time, but I changed my mind - I was actually adding a maintenance headache.

  • And the payoff was small

So I have now switched to using the do_* docstring for both the built-in help and Sphinx documentation.

  • With some very minor usage of reStructuredText markup that doesn't look bad when displaying built-in help

This closes #132

I originally created separate help_* methods for various built-in do_* methods so that:
- The Sphinx docs could use the do_* docstring which could have extra reStructuredText markup embedded
- The built-in help command could use the text from the help_* method

This seemed like a good idea at the time, but I changed my mind - I was actually adding a maintenance headache.
- And the payoff was small

So I have now switched to using the do_* docstring for both the built-in help and Sphinx documentation.
- With some very minor usage of reStructuredText markup that doesn't look bad when displaying built-in help
@tleonhardt tleonhardt added this to the 0.7.3 milestone Jun 16, 2017
@tleonhardt tleonhardt self-assigned this Jun 16, 2017
@tleonhardt tleonhardt merged commit 89f58e2 into master Jun 16, 2017
@tleonhardt tleonhardt deleted the simplify_help branch June 16, 2017 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove extra help_* methods for maintainability
1 participant