From 9de9316d5cc283e6b68ce8515b0bfa737eda22a3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 13 Oct 2021 21:18:46 +0200 Subject: [PATCH] ... --- main.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index aa5c968..1c828e8 100644 --- a/main.go +++ b/main.go @@ -27,12 +27,14 @@ func migrationData(fname, link string) ([]byte, error) { } func main() { - link := flag.String("link", "", "migration link (required)") - cache := flag.String("cache", "migration.bin", "cache file") - eval := flag.Bool("eval", false, "evaluate otps") - qr := flag.Bool("qr", false, "generate QR-codes") - http := flag.String("http", "", "serve http (e.g. localhost:6060)") - info := flag.Bool("info", false, "display batch info") + var ( + link = flag.String("link", "", "migration link (required)") + cache = flag.String("cache", "migration.bin", "cache file") + http = flag.String("http", "", "serve http (e.g. localhost:6060)") + eval = flag.Bool("eval", false, "evaluate otps") + qr = flag.Bool("qr", false, "generate QR-codes") + info = flag.Bool("info", false, "display batch info") + ) flag.Parse() data, err := migrationData(*cache, *link)