mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-11-01 07:45:43 +01:00
Add error codes for invalid or unknown commands
This commit is contained in:
parent
769210b91e
commit
8ae435dbf6
@ -54,12 +54,14 @@ export default async function clProcessor(commands) {
|
|||||||
} else {
|
} else {
|
||||||
if (m.length>0) console.log("Invalid number of parameters");
|
if (m.length>0) console.log("Invalid number of parameters");
|
||||||
helpCmd(cmd);
|
helpCmd(cmd);
|
||||||
|
return 99;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cl.length>0) console.log("Invalid command");
|
if (cl.length>0) console.log("Invalid command");
|
||||||
helpAll();
|
helpAll();
|
||||||
|
return 99;
|
||||||
|
|
||||||
function calculateMatch(cmd, cl) {
|
function calculateMatch(cmd, cl) {
|
||||||
const alias = [];
|
const alias = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user