aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-08-09 13:30:21 +0200
committerMartin Polden <mpolden@mpolden.no>2021-08-09 13:30:21 +0200
commitfd9d43374be397c94e881c662305265718f3dadd (patch)
tree15e4597c860e2d05ccdc0de268f295ec000cce26
parent0118ee6733956452bf85af5614c88a1117abaf45 (diff)
readme: Update usage
-rw-r--r--README.md22
1 files changed, 10 insertions, 12 deletions
diff --git a/README.md b/README.md
index 438c1b5..d091dca 100644
--- a/README.md
+++ b/README.md
@@ -21,18 +21,16 @@ The API aims to be compatible with [BusBuddy](https://github.com/norrs/busbuddy)
```
$ atb -h
-Usage:
- atb [OPTIONS]
-
-Application Options:
- -l, --listen=ADDRESS Listen address (:8080)
- -c, --config=FILE Path to config file (config.json)
- -s, --cache-stops=DURATION Bus stops cache duration (168h)
- -d, --cache-departures=DURATION Departures cache duration (1m)
- -x, --cors Allow requests from other domains (false)
-
-Help Options:
- -h, --help Show this help message
+Usage of atb:
+ -c string
+ Path to config file (default "config.json")
+ -d string
+ Departure cache duration (default "1m")
+ -l string
+ Listen address (default ":8080")
+ -s string
+ Bus stop cache duration (default "168h")
+ -x Allow requests from other domains
```
## Example config