ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.44k stars 338 forks source link

fix: panic on printconfig #4649

Closed acha-bill closed 2 months ago

acha-bill commented 2 months ago

Checklist

Description

Return error when an invalid config is encountered instead of panicking e.g

> bee printconfig 

...
...
# cause the node to start in full mode
full-node: true
# help for printconfig
help: false
Error: invalid-config is not a valid flag

closes #4646