aiida-core icon indicating copy to clipboard operation
aiida-core copied to clipboard

`verdi computer setup` could raise the duplicated message in a callback

Open khsrali opened this issue 1 year ago • 1 comments

Currently, in verdi computer setup if you use the same label of a computer that already exists, you'll notify at the very end of the command when all option are uselessly collected.

One can simply add a callback function for @options_computer.LABEL to raise click.BadParameter in such cases.

Or even better, get a confirmation from user to do the same thing as verdi computer duplicate

khsrali avatar Jul 16 '24 15:07 khsrali

related https://github.com/aiidateam/aiida-core/issues/4981 would be nice to address this as well https://github.com/aiidateam/aiida-core/issues/5018

khsrali avatar Jul 16 '24 15:07 khsrali