diff --git a/qualibrate_composite/cli/config.py b/qualibrate_composite/cli/config.py index 6e22cc7..f5a87c7 100644 --- a/qualibrate_composite/cli/config.py +++ b/qualibrate_composite/cli/config.py @@ -237,6 +237,13 @@ def _get_user_storage() -> Path: default=QUALIBRATE_PATH / DEFAULT_CONFIG_FILENAME, show_default=True, ) +@click.option( + "--auto-accept", + type=bool, + is_flag=True, + default=False, + show_default=True, +) @click.option( "--spawn-runner", type=bool, # TODO: add type check for addr @@ -308,6 +315,7 @@ def _get_user_storage() -> Path: def config_command( ctx: click.Context, config_path: Path, + auto_accept: bool, spawn_app: bool, spawn_runner: bool, runner_address: str, @@ -336,4 +344,4 @@ def config_command( common_config[QAPP_CONFIG_KEY] = _get_qapp_config(ctx, qs).model_dump( mode="json" ) - write_config(config_file, common_config, qs) + write_config(config_file, common_config, qs, confirm=not auto_accept)