Skip to content

Commit

Permalink
Merge pull request #3 from containeroo/improvments
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
gi8lino authored May 14, 2021
2 parents bf70d82 + 77404d5 commit 8620965
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package main

import (
"fmt"
"log"

flag "github.com/spf13/pflag"
"github.com/xlzd/gotp"
"log"
)

func main() {
secretKey := flag.StringP("secretkey", "s","", "supply a valid TOTP secret key to generate a token from")
secretKey := flag.StringP("secretkey", "s", "", "supply a valid TOTP secret key to generate a token from")
flag.Parse()
if *secretKey == "" {
log.Fatal("secretkey cannot be empty")
Expand Down

0 comments on commit 8620965

Please sign in to comment.