Add error codes for invalid or unknown commands

This commit is contained in:
Jacob Rosenthal 2020-12-08 20:57:57 -07:00
parent 769210b91e
commit 8ae435dbf6

@ -54,12 +54,14 @@ export default async function clProcessor(commands) {
} else {
if (m.length>0) console.log("Invalid number of parameters");
helpCmd(cmd);
return 99;
}
return;
}
}
if (cl.length>0) console.log("Invalid command");
helpAll();
return 99;
function calculateMatch(cmd, cl) {
const alias = [];