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:
parent
73e6d6865f
commit
a9c3abf436
|
@ -700,7 +700,10 @@ yargs(hideBin(process.argv))
|
|||
impossible(chain);
|
||||
}
|
||||
}
|
||||
).argv;
|
||||
)
|
||||
.strict()
|
||||
.demandCommand()
|
||||
.argv;
|
||||
|
||||
function hex(x: string): string {
|
||||
return ethers.utils.hexlify(x, { allowMissingPrefix: true });
|
||||
|
|
Loading…
Reference in New Issue