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
|
end
|
||||||
if not f then
|
if not f then
|
||||||
print('No documentation found for ' .. mod .. '.')
|
print('No documentation found for ' .. mod .. '.')
|
||||||
return
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
funcdocs = f:read '*a':gsub('-([%d]+)', '%1')
|
funcdocs = f:read '*a':gsub('-([%d]+)', '%1')
|
||||||
|
|
Loading…
Reference in New Issue