Repository navigation
Commit f49a0c3
feat(adapter/copilot): surface --mode in copilot subcommand --help output
Multi-model review seq-9 round 1c (GPT-5.5) found that
`ccusage copilot daily --help` (and monthly/session) listed
json/since/until/timezone/offline/compact/color/config but omitted
`-m, --mode` — even though Copilot's entire era-aware billing surface
(`auto` / `display` / `calculate` / `api`) is the headline
user-facing knob this branch adds. The flag was accepted by the parser
(`parse_shared_arg` handles `-m`/`--mode` globally), but users
discovering Copilot via `--help` had no way to find it.
Following the existing `pi_options` / `openclaw_options` precedent:
- Add new `copilot_options` entry to cli-help.json containing only
the `-m, --mode` flag with the four choices
(auto/calculate/display/api) and a description that names the
per-mode semantics (era-aware true bill vs source precomputed vs
LiteLLM vs api alias).
- Add `copilot_combined_options` to cli-commands.json
combinedOptions: ["agent_options", "copilot_options"].
- Route `copilot daily` / `copilot monthly` / `copilot session`
pages to use `copilot_combined_options` instead of bare
`agent_options`.
Verified `ccusage copilot {daily,monthly,session} --help` now lists
`-m, --mode [mode]` with all four choices. No snapshot regen needed
(no copilot-subcommand help snapshot exists; root help is unchanged).
Co-authored-by: Copilot <[email protected]>1 parent 133cd72 commit f49a0c3
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
570 | | - | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
576 | | - | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
582 | | - | |
| 583 | + | |
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
0 commit comments