chore: show help message if the argument is invalid. (#2408)

This commit is contained in:
尚墨 2020-10-19 10:35:42 +08:00 committed by GitHub
parent 5fcbb4de9c
commit 1fe4e50f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1158,6 +1158,7 @@ end
if not _M[cmd_action] then
print("invalid argument: ", cmd_action, "\n")
_M.help()
return
end