mirror of https://github.com/Hilbis/Hilbish
feat(commands/doc): return 1 exit code when doc not found
parent
4e023703b6
commit
a6bcfdfca9
|
@ -39,7 +39,7 @@ commander.register('doc', function(args)
|
|||
end
|
||||
if not f then
|
||||
print('No documentation found for ' .. mod .. '.')
|
||||
return
|
||||
return 1
|
||||
end
|
||||
end
|
||||
funcdocs = f:read '*a':gsub('-([%d]+)', '%1')
|
||||
|
|
Loading…
Reference in New Issue