Wire up -o for stories; remove -o from status

- Extract _add_output_arg() helper; add it explicitly to summary, csv,
  and stories subparsers (removes it implicitly from status)
- _cmd_stories now honours args.output, redirecting print_stories output
  to the given file (same pattern as _cmd_summary)
- Update README with stories -o example
This commit is contained in:
Jef Roosens 2026-05-28 13:17:29 +02:00
parent cd8ca789aa
commit 0204accd05
Signed by: Jef Roosens
GPG key ID: 119385BCAA005C21
2 changed files with 19 additions and 1 deletions

View file

@ -76,6 +76,7 @@ uv run timesheets csv -w --raw --joplin # full week, no aggregation
```sh
uv run timesheets stories --joplin # today
uv run timesheets stories -w --joplin # full week
uv run timesheets stories -w --joplin -o stories.md # write to file
```
### status