Create null
callback for group-only subcommands
#3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Subcommands that act only as a group layer (i.e. don't have any options or arguments) still need a callback, but it usually does nothing. Having to write this repeatedly is silly as it is trivial to automatically produce a function that does nothing.
It might be interesting to see if group-only commands can easily avoid calling a callback at all.
introduced in
76e8dedf14
.