Skip to content
New issue

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

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

Already on GitHub? # to your account

Empty docstring causes a bounds error #214

Closed
tecosaur opened this issue Aug 11, 2022 · 0 comments · Fixed by #217
Closed

Empty docstring causes a bounds error #214

tecosaur opened this issue Aug 11, 2022 · 0 comments · Fixed by #217
Labels
bug Something isn't working

Comments

@tecosaur
Copy link
Contributor

If a blank command description is given, a bounds error is thrown.

using Comonicon
"""
"""
@main

This is caused by

function read_content(md::Markdown.MD)
if md.content[1] isa Markdown.MD
return read_content(md.content[1])
else
return md.content
end
end

Where we see [1] before checking that there is any content at all.

Comonicon 0.12.17/master
@tecosaur tecosaur added the bug Something isn't working label Aug 11, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant