How can I pass positional arguments to script run by npx hardhat run command?
Help displays only this:
Hardhat version 2.6.8
Usage: hardhat [GLOBAL OPTIONS] run [--no-compile] script
OPTIONS:
--no-compile Don't compile before running this task
POSITIONAL ARGUMENTS:
script A js file to be run within hardhat's environment
run: Runs a user-defined script after compiling the project
For global options help run: hardhat help
[4:38 PM]
If I try something like
npx hardhat --network mumbai run scripts/collect.js 2
Error HH308: Unrecognized positional argument 2
For more info go to https://hardhat.org/HH308 or run Hardhat with --show-stack-traces
If I try
npx hardhat --network mumbai run scripts/collect.js 2
Error HH308: Unrecognized positional argument 2
For more info go to https://hardhat.org/HH308 or run Hardhat with --show-stack-traces
Any suggestions?