Skip to content

Commit

Permalink
GH-1446 Do not print version and non-default args when nodeos explici…
Browse files Browse the repository at this point in the history
…tly asked for help,version,full-version,print-default-config
  • Loading branch information
heifner committed Jul 25, 2023
1 parent 8068252 commit 506747a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/nodeos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ int main(int argc, char** argv)
if(!app->initialize<chain_plugin, net_plugin, producer_plugin, resource_monitor_plugin>(argc, argv, initialize_logging)) {
const auto& opts = app->get_options();
if( opts.count("help") || opts.count("version") || opts.count("full-version") || opts.count("print-default-config") ) {
on_exit.cancel();
return SUCCESS;
}
return INITIALIZE_FAIL;
Expand Down

0 comments on commit 506747a

Please sign in to comment.