Skip to content

Commit

Permalink
fix: consistent cli commands and help file
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed Jan 18, 2021
1 parent b338a66 commit 79c67e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ start(minimist(process.argv.slice(2), {
help: 'h',
brokers: 'b',
defaultTopic: 'd',
echo: 'e'
settings: 's',
echo: 'e',
timeout: 't'
},
default: {
kafka: {
Expand All @@ -72,6 +74,8 @@ start(minimist(process.argv.slice(2), {
'message.send.max.retries': 10000000,
'acks': 'all'
},
echo: true,
timeout: 10000,
brokers: '10.6.25.11:9092, 10.6.25.12:9092',
defaultTopic: 'blackbox'
}
Expand Down
3 changes: 1 addition & 2 deletions help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
-b | --brokers broker list for kafka producer. comma seperated
-d | --defaultTopic default topic name for kafka.
-s | --settings read settings from a JSON file (switches take precedence)
-r | --reconnect enable reconnecting to kafka broker. Default: off
-t | --reconnectTries set number of reconnect attempts before giving up. Default: infinite
-t | --timeout timeout for initial broker connection in milliseconds. Default 10000
-e | --echo echoing received messages to stdout. Default: enabled
--kafka.${config} additional kafka options. Example usage:
--kafka.compression.codec='gzip' --kafka.acks='all'
Expand Down

0 comments on commit 79c67e5

Please sign in to comment.