dethcrypto / deth

☠️ Ethereum Node focused on Developer Experience
MIT License
125 stars 14 forks source link

Print usage example given `--help` in argv #98

Closed hasparus closed 3 years ago

hasparus commented 3 years ago

Currently, running deth --help throws an error with "Couldn't load config" message, which is informative, but not very welcoming, so I took the liberty of handling that.

Before:

❯ deth --help
Using D:\workspace\deth\--help...
Init error Error: Couldn't load config at D:\workspace\deth\--help

After:

❯ deth --help
Usage:
  deth [config-path]

❯ deth -h
Usage:
  deth [config-path]

❯ deth help
Usage:
  deth [config-path]