Skip to content

Commit

Permalink
Merge pull request #1447 from AntelopeIO/GH-1446-nodeos
Browse files Browse the repository at this point in the history
Do not print version and non-default args for help
  • Loading branch information
heifner authored Jul 26, 2023
2 parents 98733ab + 506747a commit 8a3f43c
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 8a3f43c

Please sign in to comment.