cli: help shadows the server's help command #86

closed cmc opened this on 2026-09-02 00:25 UTC · bug cli · assigned to cmc · milestone v1.8.0

Discussion

cmc 2026-09-02 00:25 UTC

gitbay help --json exits 2 with unknown flag: --json. Cobra's built-in help wins over the passthrough, so the server's help is only reachable as ssh git@host help --json. The wiki documents --json on help.

Forward help to the server whenever it has an argument or --json; keep cobra's help for the bare form.

Ref #57

closed by commit 1c22065e25 by cmc: cli: help forwards to the server for a prefix or --json

2026-09-03 00:53 UTC