mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-04 13:35:18 +02:00
cli v3.10 dumps the full command help to stdout on a usage error (unknown flag, missing required flag, etc.). Take over that reporting via OnUsageError so usage errors print only "Incorrect Usage: <err>" to stderr and nothing to stdout, covering the auto-built completion subtree through ConfigureShellCompletionCommand. Also stop RunMainApp from printing the error a second time for non-unknown-flag usage errors. Assisted-by: Claude:Opus-4.8