@@ -484,17 +484,24 @@ def callback(message):
484
484
"receive" , help = receive_messages .__doc__
485
485
)
486
486
receive_parser .add_argument ("subscription_name" )
487
+ receive_parser .add_argument ("--timeout" , default = None , type = float )
487
488
488
489
receive_with_custom_attributes_parser = subparsers .add_parser (
489
490
"receive-custom-attributes" ,
490
491
help = receive_messages_with_custom_attributes .__doc__ ,
491
492
)
492
493
receive_with_custom_attributes_parser .add_argument ("subscription_name" )
494
+ receive_with_custom_attributes_parser .add_argument (
495
+ "--timeout" , default = None , type = float
496
+ )
493
497
494
498
receive_with_flow_control_parser = subparsers .add_parser (
495
499
"receive-flow-control" , help = receive_messages_with_flow_control .__doc__
496
500
)
497
501
receive_with_flow_control_parser .add_argument ("subscription_name" )
502
+ receive_with_flow_control_parser .add_argument (
503
+ "--timeout" , default = None , type = float
504
+ )
498
505
499
506
synchronous_pull_parser = subparsers .add_parser (
500
507
"receive-synchronously" , help = synchronous_pull .__doc__
@@ -513,6 +520,9 @@ def callback(message):
513
520
"listen_for_errors" , help = listen_for_errors .__doc__
514
521
)
515
522
listen_for_errors_parser .add_argument ("subscription_name" )
523
+ listen_for_errors_parser .add_argument (
524
+ "--timeout" , default = None , type = float
525
+ )
516
526
517
527
args = parser .parse_args ()
518
528
0 commit comments