@@ -318,33 +318,32 @@ pub struct Options {
318318
319319 // Kafka configuration (conditionally compiled)
320320 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
321- #[ arg(
322- long, env = "P_KAFKA_TOPICS" , help = "Kafka topics to subscribe to" ) ]
321+ #[ arg( long, env = "P_KAFKA_TOPICS" , help = "Kafka topics to subscribe to" ) ]
323322 pub kafka_topics : Option < String > ,
324323
325324 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
326- #[ arg(
327- long, env = "P_KAFKA_HOST" , help = "Address and port for Kafka server" ) ]
325+ #[ arg( long, env = "P_KAFKA_HOST" , help = "Address and port for Kafka server" ) ]
328326 pub kafka_host : Option < String > ,
329327
330328 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
331- #[ arg(
332- long, env = "P_KAFKA_GROUP" , help = "Kafka group" ) ]
329+ #[ arg( long, env = "P_KAFKA_GROUP" , help = "Kafka group" ) ]
333330 pub kafka_group : Option < String > ,
334331
335332 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
336- #[ arg(
337- long, env = "P_KAFKA_CLIENT_ID" , help = "Kafka client id" ) ]
333+ #[ arg( long, env = "P_KAFKA_CLIENT_ID" , help = "Kafka client id" ) ]
338334 pub kafka_client_id : Option < String > ,
339335
340336 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
341337 #[ arg(
342- long, env = "P_KAFKA_SECURITY_PROTOCOL" , help = "Kafka security protocol" ) ]
338+ long,
339+ env = "P_KAFKA_SECURITY_PROTOCOL" ,
340+ value_parser = validation:: kafka_security_protocol,
341+ help = "Kafka security protocol"
342+ ) ]
343343 pub kafka_security_protocol : Option < KafkaSslProtocol > ,
344344
345345 #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
346- #[ arg(
347- long, env = "P_KAFKA_PARTITIONS" , help = "Kafka partitions" ) ]
346+ #[ arg( long, env = "P_KAFKA_PARTITIONS" , help = "Kafka partitions" ) ]
348347 pub kafka_partitions : Option < String > ,
349348
350349 // Audit logging
0 commit comments