Add notion of promo

This commit is contained in:
nemunaire 2021-03-01 17:47:00 +01:00
commit 000ac334cc
5 changed files with 40 additions and 20 deletions

View file

@ -60,6 +60,7 @@ func main() {
var bind = flag.String("bind", ":8081", "Bind port/socket")
var dsn = flag.String("dsn", DSNGenerator(), "DSN to connect to the MySQL server")
flag.StringVar(&baseURL, "baseurl", baseURL, "URL prepended to each URL")
flag.UintVar(&currentPromo, "current-promo", currentPromo, "Year of the current promotion")
flag.Parse()
// Sanitize options