2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

fix(commands/doc): get proper doc/subdoc when printing not found

This commit is contained in:
sammyette 2023-01-07 14:16:27 -04:00
parent b594c4c30b
commit 40c8593abd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -40,7 +40,7 @@ Available sections: ]] .. table.concat(modules, ', ')
f = io.open(moddocPath .. subdocName .. '.md', 'rb') f = io.open(moddocPath .. subdocName .. '.md', 'rb')
end end
if not f then if not f then
print('No documentation found for ' .. mod .. '.') print('No documentation found for ' .. args[#args] .. '.')
return return
end end
end end