@@ -549,39 +549,44 @@ pub struct Args {
549549 default_value = "1"
550550 ) ]
551551 bootstrap_builtin_analytics_cluster_replica_size : String ,
552- /// The size of the builtin system cluster replicas if bootstrapping.
552+ /// The replication factor of the builtin system cluster replicas if bootstrapping.
553553 #[ clap(
554554 long,
555555 env = "BOOTSTRAP_BUILTIN_SYSTEM_CLUSTER_REPLICATION_FACTOR" ,
556- default_value = SYSTEM_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( )
556+ default_value = SYSTEM_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( ) ,
557+ value_parser = clap:: value_parser!( u32 ) . range( 0 ..=1 )
557558 ) ]
558559 bootstrap_builtin_system_cluster_replication_factor : u32 ,
559560 /// The replication factor of the builtin catalog server cluster replicas if bootstrapping.
560561 #[ clap(
561562 long,
562563 env = "BOOTSTRAP_BUILTIN_CATALOG_SERVER_CLUSTER_REPLICATION_FACTOR" ,
563- default_value = CATALOG_SERVER_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( )
564+ default_value = CATALOG_SERVER_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( ) ,
565+ value_parser = clap:: value_parser!( u32 ) . range( 0 ..=1 )
564566 ) ]
565567 bootstrap_builtin_catalog_server_cluster_replication_factor : u32 ,
566568 /// The replication factor of the builtin probe cluster replicas if bootstrapping.
567569 #[ clap(
568570 long,
569571 env = "BOOTSTRAP_BUILTIN_PROBE_CLUSTER_REPLICATION_FACTOR" ,
570- default_value = PROBE_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( )
572+ default_value = PROBE_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( ) ,
573+ value_parser = clap:: value_parser!( u32 ) . range( 0 ..=1 )
571574 ) ]
572575 bootstrap_builtin_probe_cluster_replication_factor : u32 ,
573576 /// The replication factor of the builtin support cluster replicas if bootstrapping.
574577 #[ clap(
575578 long,
576579 env = "BOOTSTRAP_BUILTIN_SUPPORT_CLUSTER_REPLICATION_FACTOR" ,
577- default_value = SUPPORT_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( )
580+ default_value = SUPPORT_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( ) ,
581+ value_parser = clap:: value_parser!( u32 ) . range( 0 ..=1 )
578582 ) ]
579583 bootstrap_builtin_support_cluster_replication_factor : u32 ,
580584 /// The replication factor of the builtin analytics cluster replicas if bootstrapping.
581585 #[ clap(
582586 long,
583587 env = "BOOTSTRAP_BUILTIN_ANALYTICS_CLUSTER_REPLICATION_FACTOR" ,
584- default_value = ANALYTICS_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( )
588+ default_value = ANALYTICS_CLUSTER_DEFAULT_REPLICATION_FACTOR . to_string( ) ,
589+ value_parser = clap:: value_parser!( u32 ) . range( 0 ..=1 )
585590 ) ]
586591 bootstrap_builtin_analytics_cluster_replication_factor : u32 ,
587592 /// An list of NAME=VALUE pairs used to override static defaults
0 commit comments