cmds: fix the handling for confirm=True