trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 680 forks source link

CLI parameters can be given multiple times #1008

Open area opened 5 years ago

area commented 5 years ago

If I pass --gasLimit or --gasPrice multiple times (as I was accidentally doing while starting ganache programmitically), it successfully starts but the price and block limit are set to arrays containing all of the values passed. The error messages returned are then very unhelpful (e.g. Exceeds block gas limit), when really the problem is that the gas limit is an array.

leeftk commented 3 years ago

Hey @area, we'll improve the error messaging in a future release. Thanks!

davidmurdoch commented 2 years ago

Related: https://github.com/yargs/yargs/issues/1318