feat(commands/doc): return 1 exit code when doc not found

readline-upstream
sammyette 2023-01-07 14:02:21 -04:00
parent 4e023703b6
commit a6bcfdfca9
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -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')