3 Commits
Author SHA1 Message Date
dualfroz f16353a27c Describe this repository 2026-10-22 21:07:21 +02:00
dualfroz 3caf507246 fix(args): suggest alternatives for the invalid arg, not the first one
OnlyValidArgs reports the offending argument correctly ("invalid
argument %q") but computed the "Did you mean this?" suggestion from
args[0]. When the invalid argument is not the first one, the suggestion
was therefore based on an unrelated (valid) argument, so it was missing
or pointed at the wrong token.

Compute the suggestion from the argument actually being reported, so it
always matches the invalid argument regardless of its position.
2026-09-02 10:12:40 +02:00
upstream 53d1818651 Upstream spf13/cobra state of the touched files before 695fc02b4b 2026-09-02 10:12:40 +02:00