Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
dim13 committed Oct 13, 2021
1 parent 85b0028 commit 9de9316
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9de9316

Please sign in to comment.