refactor(cli): replace positional input argument with --input / -i flag

This commit is contained in:
Jef Roosens 2026-05-22 10:34:53 +02:00
parent ecdd28e8a3
commit 715e0988dc
Signed by: Jef Roosens
GPG key ID: 119385BCAA005C21
3 changed files with 9 additions and 8 deletions

View file

@ -53,22 +53,22 @@ Do **not** use `pip` or `python` directly.
```sh
# Print CSV to stdout (date defaults to today)
uv run timesheets input.md
uv run timesheets --input input.md
# Write CSV to a file
uv run timesheets input.md -o output.csv
uv run timesheets --input input.md -o output.csv
# Override the date (DD/MM/YY)
uv run timesheets input.md --date 22/05/26
uv run timesheets --input input.md --date 22/05/26
# Use a specific project map file
uv run timesheets input.md --map /path/to/project_map.json
uv run timesheets --input input.md --map /path/to/project_map.json
# Print a human-readable summary instead of CSV
uv run timesheets input.md --summary
uv run timesheets --input input.md --summary
# Read from stdin
cat input.md | uv run timesheets -
cat input.md | uv run timesheets --input -
# Fetch today's entries from Joplin (token via env var)
JOPLIN_TOKEN=your_token uv run timesheets --joplin