Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Use boost value<bool> instead of bool_switch since bool_switch defaul…
Browse files Browse the repository at this point in the history
…ts to false
  • Loading branch information
heifner committed Aug 9, 2018
1 parent ba483eb commit cbd3a3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/mongo_db_plugin/mongo_db_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1343,15 +1343,15 @@ void mongo_db_plugin::set_program_options(options_description& cli, options_desc
"MongoDB URI connection string, see: https://docs.mongodb.com/master/reference/connection-string/."
" If not specified then plugin is disabled. Default database 'EOS' is used if not specified in URI."
" Example: mongodb://127.0.0.1:27017/EOS")
("mongodb-store-blocks", bpo::bool_switch()->default_value(true),
("mongodb-store-blocks", bpo::value<bool>()->default_value(true),
"Enables storing blocks in mongodb.")
("mongodb-store-block-states", bpo::bool_switch()->default_value(true),
("mongodb-store-block-states", bpo::value<bool>()->default_value(true),
"Enables storing block state in mongodb.")
("mongodb-store-transactions", bpo::bool_switch()->default_value(true),
("mongodb-store-transactions", bpo::value<bool>()->default_value(true),
"Enables storing transactions in mongodb.")
("mongodb-store-transaction-traces", bpo::bool_switch()->default_value(true),
("mongodb-store-transaction-traces", bpo::value<bool>()->default_value(true),
"Enables storing transaction traces in mongodb.")
("mongodb-store-action-traces", bpo::bool_switch()->default_value(true),
("mongodb-store-action-traces", bpo::value<bool>()->default_value(true),
"Enables storing action traces in mongodb.")
("mongodb-filter-on", bpo::value<vector<string>>()->composing(),
"Mongodb: Track actions which match receiver:action:actor. Actor may be blank to include all. Receiver and Action may not be blank. Default is * include everything.")
Expand Down

0 comments on commit cbd3a3c

Please sign in to comment.