Skip to content

Commit

Permalink
Fix keeper-client help message
Browse files Browse the repository at this point in the history
  • Loading branch information
pufit committed Jun 14, 2023
1 parent 081376e commit c05bcf5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions programs/keeper-client/KeeperClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,42 +127,42 @@ void KeeperClient::defineOptions(Poco::Util::OptionSet & options)

options.addOption(
Poco::Util::Option("host", "h", "server hostname. default `localhost`")
.argument("host")
.argument("<host>")
.binding("host"));

options.addOption(
Poco::Util::Option("port", "p", "server port. default `2181`")
.argument("port")
.argument("<port>")
.binding("port"));

options.addOption(
Poco::Util::Option("query", "q", "will execute given query, then exit.")
.argument("query")
.argument("<query>")
.binding("query"));

options.addOption(
Poco::Util::Option("connection-timeout", "", "set connection timeout in seconds. default 10s.")
.argument("connection-timeout")
.argument("<seconds>")
.binding("connection-timeout"));

options.addOption(
Poco::Util::Option("session-timeout", "", "set session timeout in seconds. default 10s.")
.argument("session-timeout")
.argument("<seconds>")
.binding("session-timeout"));

options.addOption(
Poco::Util::Option("operation-timeout", "", "set operation timeout in seconds. default 10s.")
.argument("operation-timeout")
.argument("<seconds>")
.binding("operation-timeout"));

options.addOption(
Poco::Util::Option("history-file", "", "set path of history file. default `~/.keeper-client-history`")
.argument("history-file")
.argument("<file>")
.binding("history-file"));

options.addOption(
Poco::Util::Option("log-level", "", "set log level")
.argument("log-level")
.argument("<level>")
.binding("log-level"));
}

Expand Down

0 comments on commit c05bcf5

Please sign in to comment.