Skip to content

Commit 3cfc38a

Browse files
committed
Remove producer mode, raise if X given
1 parent 5a7fc1e commit 3cfc38a

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/saluki/main.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def main():
5555
"--kafka-config",
5656
help="kafka options to pass through to librdkafka",
5757
required=False,
58-
default="",
58+
default=None,
5959
)
6060
parent_parser.add_argument(
6161
"-l",
@@ -112,23 +112,14 @@ def main():
112112
"-p", "--partition", required=False, type=int, default=None
113113
)
114114

115-
# Producer mode - add this later
116-
producer_parser = sub_parsers.add_parser(
117-
_PRODUCE, help="producer mode", parents=[parent_parser]
118-
)
119-
producer_parser.add_argument(
120-
"-f",
121-
"--filename",
122-
help="JSON file to produce",
123-
required=True,
124-
type=argparse.FileType("r"),
125-
)
126-
127115
if len(sys.argv) == 1:
128116
parser.print_help()
129117
sys.exit(1)
130118
args = parser.parse_args()
131119

120+
if args.kafka_config is not None:
121+
raise NotImplementedError("-X is not implemented yet.")
122+
132123
broker, topic = parse_kafka_uri(args.topic)
133124

134125
if args.log_file:

0 commit comments

Comments
 (0)