Add descriptions for RPC command line params

This commit is contained in:
Zachary Michaels 2014-09-08 16:59:42 -04:00 committed by Riccardo Spagni
parent 1e38a02bb5
commit 3ef7f33300
1 changed files with 9 additions and 3 deletions

View File

@ -45,15 +45,21 @@ namespace cryptonote
{ {
namespace namespace
{ {
const command_line::arg_descriptor<std::string> arg_rpc_bind_ip = {"rpc-bind-ip", "", "127.0.0.1"}; const command_line::arg_descriptor<std::string> arg_rpc_bind_ip = {
"rpc-bind-ip"
, "IP for RPC server"
, "127.0.0.1"
};
const command_line::arg_descriptor<std::string> arg_rpc_bind_port = { const command_line::arg_descriptor<std::string> arg_rpc_bind_port = {
"rpc-bind-port" "rpc-bind-port"
, "" , "Port for RPC server"
, std::to_string(config::RPC_DEFAULT_PORT) , std::to_string(config::RPC_DEFAULT_PORT)
}; };
const command_line::arg_descriptor<std::string> arg_testnet_rpc_bind_port = { const command_line::arg_descriptor<std::string> arg_testnet_rpc_bind_port = {
"testnet-rpc-bind-port" "testnet-rpc-bind-port"
, "" , "Port for testnet RPC server"
, std::to_string(config::testnet::RPC_DEFAULT_PORT) , std::to_string(config::testnet::RPC_DEFAULT_PORT)
}; };
} }