-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
E.g., in coder/coder we have code like:
cmd := &serpent.Cmd{
Use: "create [name]",
Short: "DEPRECATED: Create a template from the current directory or as specified by flag",
Middleware: serpent.Chain(
serpent.RequireRangeArgs(0, 1),
r.InitClient(client),
),
where the serpent.RequireRangeArgs(0, 1)
is arguably redundant with the Use. Also, we could provide an error message by just parsing Use.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request