Преглед изворни кода

Allow reckless for drop

Enhance drop's command config tab with an option to set the `reckless`
parameter. This is needed for drop, since otherwise users can't wipe out
local datasets w/o no siblings (that may have been created for testing
or by accident).
Benjamin Poldrack пре 1 година
родитељ
комит
4ea4a4fc8d
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      datalad_gooey/simplified_api.py

+ 2 - 1
datalad_gooey/simplified_api.py

@@ -126,19 +126,20 @@ api = dict(
         exclude_parameters=set((
             'check',
             'if_dirty',
-            'reckless',
         )),
         parameter_display_names=dict(
             dataset='Drop from dataset at',
             what='What to drop',
             path='Only drop',
             recursive='Also drop (in) any subdatasets',
+            reckless='Disable safeguard(s)',
         ),
         parameter_order=dict(
             dataset=0,
             what=1,
             path=2,
             recursive=3,
+            reckless=4,
         ),
     ),
     get=dict(