clients/js: make arg parser strict

Now it shows help when passing incorrect arguments

why is this not the default?

commit-id:f86cdbd5
This commit is contained in:
Csongor Kiss 2022-08-28 12:14:40 +02:00
parent 73e6d6865f
commit a9c3abf436
1 changed files with 4 additions and 1 deletions

View File

@ -700,7 +700,10 @@ yargs(hideBin(process.argv))
impossible(chain); impossible(chain);
} }
} }
).argv; )
.strict()
.demandCommand()
.argv;
function hex(x: string): string { function hex(x: string): string {
return ethers.utils.hexlify(x, { allowMissingPrefix: true }); return ethers.utils.hexlify(x, { allowMissingPrefix: true });