Add captured flag value application

This commit is contained in:
2026-10-11 01:20:43 +00:00
parent f63b096525
commit 4e0611bc13
4 changed files with 243 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ func (a *App) Execute(ctx context.Context, args []string, streams Streams) Outco
}
input := buildInput()
if err := command.record.payload.checkInput(input); err != nil {
return current.present(Usage(err), parsed.Path)
return current.present(classifyInputError(err), parsed.Path)
}
if len(parsed.Path) == 1 && parsed.Path[0] == "help" {
help, ok := input.(*helpInput)