protofire / eth-cli

CLI swiss army knife for Ethereum developers
https://www.npmjs.com/package/eth-cli
MIT License
239 stars 40 forks source link

allow for setting a default network #167

Open donpdonp opened 1 year ago

donpdonp commented 1 year ago

eth-cli is a fantastic utility, but I'm often typing 'eth-cli command' -> Invalid JSON ""` which means I forgot to add --mainnet. Adding a default network either from an environment variable, or the init file, would be a usability improvement. Also reporting the network error instead of an empty string would help a new user know whats going on.