From 06c5c8cf64cd21e3ce8501ba5812df15d8b29985 Mon Sep 17 00:00:00 2001 From: Eran Hadad Date: Sun, 24 Nov 2024 11:42:55 +0200 Subject: [PATCH] =?UTF-8?q?Update=20bigstore=20version=202=20support=20fla?= =?UTF-8?q?g=20to=20be=20a=20boolean=20option=20in=20comm=E2=80=A6=20(#107?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update bigstore version 2 support flag to be a boolean option in command line and None as default --- RAMP/ramp.py | 2 +- test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RAMP/ramp.py b/RAMP/ramp.py index bd07659..d7861f5 100755 --- a/RAMP/ramp.py +++ b/RAMP/ramp.py @@ -99,7 +99,7 @@ def unpack(bundle): @click.option('--redis-min-version', '-r', 'min_redis_version', default=None, help='redis minimum version') @click.option('--redis-pack-min-version', '-R', 'min_redis_pack_version', default=None, help='redis pack minimum version') @click.option('--redis-compatible-version', '-cr', 'compatible_redis_version', default=None, help='redis compatible version') -@click.option('--bigstore-version-2-support', 'bigstore_version_2_support', default=False, help='This module supports RofV2') +@click.option('--bigstore-version-2-support', 'bigstore_version_2_support', is_flag=True, default=None, help='This module supports RofV2') @click.option('--config-command', '-cc', default=None, help='command used to configure module args at runtime') @click.option('--os', '-O', default=None, help='build target OS (Darwin/Linux)') @click.option('--capabilities', '-C', callback=comma_seperated_to_list, help='comma separated list of module capabilities') diff --git a/test.py b/test.py index e63b1fe..64d4fd8 100644 --- a/test.py +++ b/test.py @@ -124,7 +124,7 @@ def test_bundle_from_cmd(): '-d', display_name, '-b', capability_name, '-n', module_name, '-h', homepage, '-l', _license, '-c', command_line_args, '-r', min_redis_version, '-R', min_redis_pack_version, '-cr', compatible_redis_version, - '--bigstore-version-2-support', bigstore_version_2_support, + '--bigstore-version-2-support', '-C', ','.join([cap['name'] for cap in MODULE_CAPABILITIES]), '-o', BUNDLE_ZIP_FILE, '-cc', CONFIG_COMMAND, '-E', 'graph.bulk', '-E', 'graph.BULK',