Skip to content

Commit 2d593dd

Browse files
committed
ws cobra subcommands / channel is not a positional argument anymore
1 parent 779b1e6 commit 2d593dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/cobra.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## General
22

3-
cobra is a real time messaging server. The `ws` utility can run a cobra server (named snake), and has client to publish and subscribe to a cobra server.
3+
[cobra](https://github.com/machinezone/cobra) is a real time messaging server. The `ws` utility can run a cobra server (named snake), and has client to publish and subscribe to a cobra server.
44

55
Bring up 3 terminals and run a server, a publisher and a subscriber in each one. As you publish data you should see it being received by the subscriber. You can run `redis-cli MONITOR` too to see how redis is being used.
66

ws/ws.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ int main(int argc, char** argv)
214214
cobraSubscribeApp->add_option("--endpoint", endpoint, "Endpoint")->required();
215215
cobraSubscribeApp->add_option("--rolename", rolename, "Role name")->required();
216216
cobraSubscribeApp->add_option("--rolesecret", rolesecret, "Role secret")->required();
217-
cobraSubscribeApp->add_option("channel", channel, "Channel")->required();
217+
cobraSubscribeApp->add_option("--channel", channel, "Channel")->required();
218218
cobraSubscribeApp->add_option("--pidfile", pidfile, "Pid file");
219219
cobraSubscribeApp->add_option("--filter", filter, "Stream SQL Filter");
220220
cobraSubscribeApp->add_flag("-q", quiet, "Quiet / only display stats");
@@ -224,7 +224,7 @@ int main(int argc, char** argv)
224224
cobraPublish->add_option("--endpoint", endpoint, "Endpoint")->required();
225225
cobraPublish->add_option("--rolename", rolename, "Role name")->required();
226226
cobraPublish->add_option("--rolesecret", rolesecret, "Role secret")->required();
227-
cobraPublish->add_option("channel", channel, "Channel")->required();
227+
cobraPublish->add_option("--channel", channel, "Channel")->required();
228228
cobraPublish->add_option("--pidfile", pidfile, "Pid file");
229229
cobraPublish->add_option("path", path, "Path to the file to send")
230230
->required()
@@ -236,7 +236,7 @@ int main(int argc, char** argv)
236236
cobraMetricsPublish->add_option("--endpoint", endpoint, "Endpoint");
237237
cobraMetricsPublish->add_option("--rolename", rolename, "Role name");
238238
cobraMetricsPublish->add_option("--rolesecret", rolesecret, "Role secret");
239-
cobraMetricsPublish->add_option("channel", channel, "Channel")->required();
239+
cobraMetricsPublish->add_option("--channel", channel, "Channel")->required();
240240
cobraMetricsPublish->add_option("--pidfile", pidfile, "Pid file");
241241
cobraMetricsPublish->add_option("path", path, "Path to the file to send")
242242
->required()

0 commit comments

Comments
 (0)