[Core] Various fixes to redbot-setup delete (#2958)

- ``redbot-setup delete`` no longer errors about "unexpected keyword argument" (fix #2955)
- ``redbot-setup delete`` no longer prompts about backup when user passes ``--no-prompt`` option (fix #2956)
- ``--[no-]backup``, ``--[no-]drop-db`` and ``--[no-]remove-datapath`` in ``redbot-setup delete`` command are now on/off flags. ``--no-prompt`` was changed to flag too, but it doesn't have ``--prompt`` equivalent as there's no much point in having it
- ``redbot-setup`` now uses `click.confirm` for confirmation prompts and thy now also have default values for user convenience
This commit is contained in:
jack1142
2019-08-30 00:23:31 +02:00
committed by Toby Harradine
parent 26cc85806e
commit b490942bcd
5 changed files with 57 additions and 24 deletions

View File

@@ -0,0 +1 @@
``redbot-setup delete`` no longer errors about "unexpected keyword argument"

View File

@@ -0,0 +1 @@
``redbot-setup delete`` no longer prompts about backup when user passes ``--no-prompt`` option

View File

@@ -0,0 +1 @@
``--[no-]backup``, ``--[no-]drop-db`` and ``--[no-]remove-datapath`` in ``redbot-setup delete`` command are now on/off flags.

View File

@@ -0,0 +1 @@
Confirmation prompts in ``redbot-setup`` now have default values for user convenience.