Skip to content

Commit 000a119

Browse files
committed
Add short options to kafka producer example
1 parent e741f40 commit 000a119

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/kafka_producer.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ int main(int argc, char* argv[]) {
2525

2626
po::options_description options("Options");
2727
options.add_options()
28-
("help,h", "produce this help message")
29-
("brokers", po::value<string>(&brokers)->required(),
30-
"the kafka broker list")
31-
("topic", po::value<string>(&topic_name)->required(),
32-
"the topic in which to write to")
33-
("partition", po::value<int>(&partition_value),
34-
"the partition to write into (unassigned if not provided)")
28+
("help,h", "produce this help message")
29+
("brokers,b", po::value<string>(&brokers)->required(),
30+
"the kafka broker list")
31+
("topic,t", po::value<string>(&topic_name)->required(),
32+
"the topic in which to write to")
33+
("partition,p", po::value<int>(&partition_value),
34+
"the partition to write into (unassigned if not provided)")
3535
;
3636

3737
po::variables_map vm;

0 commit comments

Comments
 (0)