Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle unset 'Command.short_help' #24

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

stephenfin
Copy link
Member

There appears to be a bug in Click 7.0 that has the 'short_help' value
unset, meaning we see the following exceptions:

AttributeError: 'NoneType' object has no attribute 'split'

Resolve this with a simply falling back to 'help' if 'short_help' is
unset. This means we continue to work with all versions of Click, even
though the proper fix should be in Click itself.

Signed-off-by: Stephen Finucane stephen@that.guru
Closes: #21

There appears to be a bug in Click 7.0 that has the 'short_help' value
unset, meaning we see the following exceptions:

  AttributeError: 'NoneType' object has no attribute 'split'

Resolve this with a simply falling back to 'help' if 'short_help' is
unset. This means we continue to work with all versions of Click, even
though the proper fix should be in Click itself.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: click-contrib#21
@timofurrer timofurrer merged commit a1fed4d into click-contrib:master Nov 15, 2018
@stephenfin stephenfin deleted the issues/21 branch November 15, 2018 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use click 7.0 Generate man pages report "AttributeError"
2 participants