Skip to content

Commit

Permalink
add default plugin values to option
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Nov 17, 2018
1 parent 9647ad1 commit ce35a79
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions programs/witness_node/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ int main(int argc, char** argv) {
bpo::options_description cfg_options("Graphene Witness Node");
app_options.add_options()
("help,h", "Print this help message and exit.")
("data-dir,d", bpo::value<boost::filesystem::path>()->default_value("witness_node_data_dir"), "Directory containing databases, configuration file, etc.")
("data-dir,d", bpo::value<boost::filesystem::path>()->default_value("witness_node_data_dir"),
"Directory containing databases, configuration file, etc.")
("version,v", "Display version information")
("plugins", bpo::value<std::string>(), "Space-separated list of plugins to activate");
("plugins", bpo::value<std::string>()->default_value("witness account_history market_history grouped_orders"),
"Space-separated list of plugins to activate");

bpo::variables_map options;

Expand Down Expand Up @@ -111,12 +113,6 @@ int main(int argc, char** argv) {
}
});
}
else {
node->enable_plugin("witness");
node->enable_plugin("account_history");
node->enable_plugin("market_history");
node->enable_plugin("grouped_orders");
}

if( options.count("help") )
{
Expand Down

0 comments on commit ce35a79

Please sign in to comment.