Skip to content

Commit

Permalink
fix cmd help message in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Dec 12, 2024
1 parent 2add223 commit f683a98
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/z_advanced_pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main(int argc, char** argv) {
void print_help() {
printf(
"\
Usage: z_pub [OPTIONS]\n\n\
Usage: z_advanced_pub [OPTIONS]\n\n\
Options:\n\
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to write to\n\
-p, --payload <PAYLOAD> (optional, string, default='%s'): The value to write\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/z_advanced_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void print_help() {
"\
Usage: z_advanced_sub [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to subscribe to\n",
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to subscribe to\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void print_help() {
"\
Usage: z_delete [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to write to\n",
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to write to\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_get_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void print_help() {
"\
Usage: z_get_liveliness [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to query\n\
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to query\n\
-o, --timeout <TIMEOUT_MS> (optional, number, default = '%d'): Query timeout in milliseconds\n",
DEFAULT_KEYEXPR, DEFAULT_TIMEOUT_MS);
printf(COMMON_HELP);
Expand Down
2 changes: 1 addition & 1 deletion examples/z_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void print_help() {
"\
Usage: z_liveliness [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression the liveliness token\n",
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression the liveliness token\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void print_help() {
"\
Usage: z_pull [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to subscribe to\n\
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to subscribe to\n\
-s, --size <SIZE> (optional, number, default='%d'): The size of the ring buffer\n\
-i, --interval <INTERVAL> (optional, number, default='%d'): The interval for pulling the ringbuffer.\n",
DEFAULT_KEYEXPR, DEFAULT_RING_BUFFER_SIZE, DEFAULT_PULL_INTERVAL);
Expand Down
2 changes: 1 addition & 1 deletion examples/z_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void print_help() {
"\
Usage: z_sub [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to subscribe to\n",
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to subscribe to\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_sub_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void print_help() {
"\
Usage: z_sub_liveliness [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression matching liveliness tokens to subscribe to\n\
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression matching liveliness tokens to subscribe to\n\
--history (optional): Get historical liveliness tokens.\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
Expand Down
2 changes: 1 addition & 1 deletion examples/z_sub_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void print_help() {
"\
Usage: z_sub_shm [OPTIONS]\n\n\
Options:\n\
-k, --key <KEY> (optional, string, default='%s'): The key expression to subscribe to\n",
-k, --key <KEYEXPR> (optional, string, default='%s'): The key expression to subscribe to\n",
DEFAULT_KEYEXPR);
printf(COMMON_HELP);
}
Expand Down

0 comments on commit f683a98

Please sign in to comment.