Skip to content

Commit

Permalink
Merge pull request #414 from silicon-heaven/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
fvacek authored Feb 12, 2024
2 parents 1d85cc5 + 9ee73ca commit 5786abd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libshvcore/src/utils/clioptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ void CLIOptions::addParseError(const std::string& err)

ConfigCLIOptions::ConfigCLIOptions()
{
addOption("config").setType(RpcValue::Type::String).setNames("--config").setComment("Application config name, it is loaded from {config}[.conf] if file exists in {config-dir}, deault value is {app-name}.conf");
addOption("configDir").setType(RpcValue::Type::String).setNames("--config-dir").setComment("Directory where application config fiels are searched, default value: {app-dir-path}.");
addOption("config").setType(RpcValue::Type::String).setNames("--config").setComment("Application config name, it is loaded from {config}[.conf] if file exists in {config-dir}, default value is {app-name}.conf");
addOption("configDir").setType(RpcValue::Type::String).setNames("--config-dir").setComment("Directory where application config fields are searched, default value: {app-dir-path}.");
}

void ConfigCLIOptions::parse(const StringList &cmd_line_args)
Expand Down
4 changes: 2 additions & 2 deletions libshvcoreqt/src/utils/clioptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ chainpack::RpcValue CLIOptions::qVariantToRpcValue(const QVariant &v)
ConfigCLIOptions::ConfigCLIOptions(QObject *parent)
: Super(parent)
{
addOption("config").setType(QMetaType::Type::QString).setNames("--config").setComment("Application config name, it is loaded from {config}[.conf] if file exists in {config-dir}, deault value is {app-name}.conf");
addOption("configDir").setType(QMetaType::QString).setNames("--config-dir").setComment("Directory where application config fiels are searched, default value: {app-dir-path}.");
addOption("config").setType(QMetaType::Type::QString).setNames("--config").setComment("Application config name, it is loaded from {config}[.conf] if file exists in {config-dir}, default value is {app-name}.conf");
addOption("configDir").setType(QMetaType::QString).setNames("--config-dir").setComment("Directory where application config fields are searched, default value: {app-dir-path}.");
}

void ConfigCLIOptions::parse(const QStringList &cmd_line_args)
Expand Down
2 changes: 1 addition & 1 deletion libshviotqt/src/rpc/clientappclioptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ClientAppCliOptions::ClientAppCliOptions()
addOption("server.peerVerify").setType(cp::RpcValue::Type::Bool).setNames("--peer-verify").setComment("Verify peer's identity when establishing secured connection").setDefaultValue(true);

addOption("rpc.rpcTimeout").setType(cp::RpcValue::Type::Int).setNames("--rto", "--rpc-time-out").setComment("Set default RPC calls timeout [sec].").setDefaultValue(shv::chainpack::RpcDriver::defaultRpcTimeoutMsec() / 1000);
addOption("rpc.reconnectInterval").setType(cp::RpcValue::Type::Int).setNames("--rci", "--rpc-reconnect-interval").setComment("Reconnect to broker if connection lost at least after recoonect-interval seconds. Disabled when set to 0").setDefaultValue(10);
addOption("rpc.reconnectInterval").setType(cp::RpcValue::Type::Int).setNames("--rci", "--rpc-reconnect-interval").setComment("Reconnect to broker if connection lost at least after reconnect-interval seconds. Disabled when set to 0").setDefaultValue(10);
addOption("rpc.heartbeatInterval").setType(cp::RpcValue::Type::Int).setNames("--hbi", "--rpc-heartbeat-interval").setComment("Send heart beat to broker every n sec. Disabled when set to 0").setDefaultValue(60);
}

Expand Down

0 comments on commit 5786abd

Please sign in to comment.