Update README help display

This commit is contained in:
Marty Oehme 2025-09-03 18:16:07 +02:00
parent eca5f2e439
commit a108a0bdc3
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -18,8 +18,27 @@ Most options should be pretty self-explanatory, but a few notes:
- You can use the price snapshots, if you decide to create them with `dump-price-snapshot`, to create pretty time series graphs
- Currently, we _only_ support `ntfy`, as well as the official `ntfy` server as the notification channel
```help
Usage: nightjet [OPTIONS] TRAVEL_DATE
```sh
Usage: nightjet [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ query Check the (lowest) prices for a single connection. │
│ lastdate Check for the currently latest possible booking date. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
```sh
Usage: nightjet query [OPTIONS] TRAVEL_DATE
Check the (lowest) prices for a single connection.
Will run repeatedly or one-shot and query the prices for a specific connection. Can be set to output all available
prices or just output the lowest found. Outputs will (curently) always be given as csv files.
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * travel_date TEXT Travel day to search from. (YYYY-MM-DD) [default: None] [required] │
@ -51,9 +70,9 @@ Most options should be pretty self-explanatory, but a few notes:
│ --dump-price-snapshot --no-dump-price-snapshot Dump _all_ queried prices into a timestamped csv │
│ file. │
│ [default: dump-price-snapshot] │
│ --install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it
or customize the installation.
│ --latest-bookable-date --no-latest-bookable-date Check for latest currently possible booking date
only.
[default: no-latest-bookable-date]
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
@ -83,3 +102,6 @@ Here are a bunch of things I think should definitely be considered for further w
5. Support more notification channels. This should be self-explanatory, and could probably be pretty
easily be improved with a library like [apprise](https://github.com/caronc/apprise?tab=readme-ov-file#developer-api-usage).
6. Support simple stdout responses. We always dump to csv files for the price queries currently,
this definitely needs to change.