Connect invocation execution to one reporter

This commit is contained in:
2026-10-26 02:59:28 +00:00
parent df21b75f9c
commit 49a10690c6
6 changed files with 261 additions and 144 deletions

View File

@@ -90,7 +90,7 @@ func (values FlagValues[I]) ApplyTo(target *I, selected ...Flag[I]) error {
func classifyInputError(err error) Outcome {
if errors.Is(err, ErrFlagWiring) {
return Failure(err)
return Failure(err.Error()).WithCause(err)
}
return Usage(err)
return Usage(err.Error()).WithCause(err)
}