Undo on failed args when the default exists

This commit is contained in:
Zomatree
2023-12-29 20:10:57 +00:00
parent 9bf443e36b
commit 1cfc21d4ff
+1
View File
@@ -175,6 +175,7 @@ class Command(Generic[ClientT_Co_D]):
except StopIteration:
if parameter.default is not parameter.empty:
arg = parameter.default
context.view.undo()
else:
raise