Skip to content

Commit c1f06e9

Browse files
removes all cli flags
Signed-off-by: Elena Kolevska <elena@kolevska.com>
1 parent 595c54d commit c1f06e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def describe_profile(profile_name):
116116
@click.option('--port', type=int, default=lambda: get_env_or_default('REDIS_PORT', 6379, int), help='Redis port')
117117
@click.option('--password', default=lambda: get_env_or_default('REDIS_PASSWORD', None), help='Redis password')
118118
@click.option('--db', type=int, default=lambda: get_env_or_default('REDIS_DB', 0, int), help='Redis database number')
119-
@click.option('--cluster', is_flag=True, default=lambda: get_env_or_default('REDIS_CLUSTER', False, bool), help='Use Redis Cluster mode')
119+
@click.option('--cluster-enabled', type=bool, default=lambda: get_env_or_default('REDIS_CLUSTER', False, bool), help='Use Redis Cluster mode')
120120
@click.option('--cluster-nodes', default=lambda: get_env_or_default('REDIS_CLUSTER_NODES', None), help='Comma-separated list of cluster nodes (host:port)')
121121
@click.option('--ssl-enabled', type=bool, default=lambda: get_env_or_default('REDIS_SSL_ENABLED', False, bool), help='Use SSL/TLS connection')
122122
@click.option('--ssl-keyfile', default=lambda: get_env_or_default('REDIS_SSL_KEYFILE', None), help='Path to client private key file')
@@ -125,7 +125,7 @@ def describe_profile(profile_name):
125125
@click.option('--ssl-ca-certs', default=lambda: get_env_or_default('REDIS_SSL_CA_CERTS', None), help='Path to CA certificates file')
126126
@click.option('--ssl-ca-path', default=lambda: get_env_or_default('REDIS_SSL_CA_PATH', None), help='Path to directory containing CA certificates')
127127
@click.option('--ssl-ca-data', default=lambda: get_env_or_default('REDIS_SSL_CA_DATA', None), help='CA certificate data as string')
128-
@click.option('--ssl-check-hostname', is_flag=True, default=lambda: get_env_or_default('REDIS_SSL_CHECK_HOSTNAME', True, bool), help='Check SSL hostname')
128+
@click.option('--ssl-check-hostname', type=bool, default=lambda: get_env_or_default('REDIS_SSL_CHECK_HOSTNAME', True, bool), help='Check SSL hostname')
129129
@click.option('--ssl-password', default=lambda: get_env_or_default('REDIS_SSL_PASSWORD', None), help='Password for SSL private key')
130130
@click.option('--ssl-min-version', default=lambda: get_env_or_default('REDIS_SSL_MIN_VERSION', 'TLSv1_2'), help='Minimum SSL/TLS version (TLSv1, TLSv1_1, TLSv1_2, TLSv1_3 or 1.0, 1.1, 1.2, 1.3). Default: TLSv1_2 for Redis Enterprise compatibility')
131131
@click.option('--ssl-ciphers', default=lambda: get_env_or_default('REDIS_SSL_CIPHERS', None), help='SSL cipher suite')
@@ -161,9 +161,9 @@ def describe_profile(profile_name):
161161
# ============================================================================
162162
# Pipeline & Advanced Parameters
163163
# ============================================================================
164-
@click.option('--use-pipeline', is_flag=True, default=lambda: get_env_or_default('TEST_USE_PIPELINE', False, bool), help='Use Redis pipelining')
164+
@click.option('--use-pipeline', type=bool, default=lambda: get_env_or_default('TEST_USE_PIPELINE', False, bool), help='Use Redis pipelining')
165165
@click.option('--pipeline-size', type=int, default=lambda: get_env_or_default('TEST_PIPELINE_SIZE', 10, int), help='Number of operations per pipeline')
166-
@click.option('--async-mode', is_flag=True, default=lambda: get_env_or_default('TEST_ASYNC_MODE', False, bool), help='Use asynchronous operations')
166+
@click.option('--async-mode', type=bool, default=lambda: get_env_or_default('TEST_ASYNC_MODE', False, bool), help='Use asynchronous operations')
167167
@click.option('--transaction-size', type=int, default=lambda: get_env_or_default('TEST_TRANSACTION_SIZE', 5, int), help='Number of operations per transaction')
168168
@click.option('--pubsub-channels', default=lambda: get_env_or_default('TEST_PUBSUB_CHANNELS', None), help='Comma-separated list of pub/sub channels')
169169

@@ -173,7 +173,7 @@ def describe_profile(profile_name):
173173
@click.option('--log-level', default=lambda: get_env_or_default('LOG_LEVEL', 'INFO'), type=click.Choice(['DEBUG', 'INFO', 'WARNING', 'ERROR']), help='Logging level')
174174
@click.option('--log-file', default=lambda: get_env_or_default('LOG_FILE', None), help='Log file path')
175175
@click.option('--output-file', default=lambda: get_env_or_default('OUTPUT_FILE', None), help='Output file for final test summary (JSON). If not provided, prints to stdout.')
176-
@click.option('--quiet', is_flag=True, default=False, help='Suppress periodic stats output')
176+
@click.option('--quiet', type=bool, default=False, help='Suppress periodic stats output')
177177

178178
# ============================================================================
179179
# OpenTelemetry & Metrics Parameters
@@ -289,7 +289,7 @@ def _build_config_from_args(kwargs) -> RunnerConfig:
289289
port=kwargs['port'],
290290
password=kwargs['password'],
291291
database=kwargs['db'],
292-
cluster_mode=kwargs['cluster'],
292+
cluster_mode=kwargs['cluster_enabled'],
293293
cluster_nodes=cluster_nodes,
294294
ssl=kwargs['ssl_enabled'],
295295
ssl_keyfile=kwargs['ssl_keyfile'],

0 commit comments

Comments
 (0)