From ce1ff59ccf53b6275b372201a8ce63b81d40445b Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Mon, 25 Nov 2024 13:37:34 +0100 Subject: [PATCH] Update src/aiida/cmdline/commands/cmd_computer.py --- src/aiida/cmdline/commands/cmd_computer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiida/cmdline/commands/cmd_computer.py b/src/aiida/cmdline/commands/cmd_computer.py index ce2abca3c..820f762cf 100644 --- a/src/aiida/cmdline/commands/cmd_computer.py +++ b/src/aiida/cmdline/commands/cmd_computer.py @@ -634,7 +634,7 @@ def _dry_run_callback(pks): if pks: echo.echo_report('The nodes with the following pks would be deleted: ' + ' '.join(map(str, pks))) echo.echo_warning(f'YOU ARE ABOUT TO DELETE {len(pks)} NODES! THIS CANNOT BE UNDONE!') - confirm = click.prompt('Shall I continue? [yes/NO]', type=str) == 'yes' + click.confirm('Shall I continue?', default=False) if not confirm: raise click.Abort return not confirm