Do not print help when the start command encounters an error #670
Labels
CLI
Command line interface feature
enhancement
New feature or request
good first issue
Good for newcomers
Summary
Do not print the start command's usage/help when an error is encountered.
Problem Definition
Currently, if an error is encountered while a node is running (or trying to start), the error is printed, then the usage info for the
provenanced start
command is printed. That usage info is quite verbose (there are lots of flags), and it often pushes the error off of the screen. Additionally, the usage information is rarely useful in that situation since the error usually isn't related to the command used to invoke it, but related to something else with the chain, system or configuration.Proposal
Add this to the end of
func initRootCmd
:Doing this will still allow
provenanced start --help
andprovenance help start
to work as expected. But when you doprovenanced start
and end up getting an error, it won't print usage info any more.For Admin Use
The text was updated successfully, but these errors were encountered: