diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c429a8f..a2c0497 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ --- -image: golang:1.12.9 +image: golang:1.13.4 variables: CGO_ENABLED: 0 diff --git a/main.go b/main.go index a3e5b94..2269dac 100644 --- a/main.go +++ b/main.go @@ -46,10 +46,10 @@ func init() { flag.StringVar(&longBreakTime, "long-break", "20m", "sets the timer for your long break.") flag.IntVar(&maxWorkSessions, "max-work-sessions", 4, "sets the maximum number of work cycles to complete before taking a long break.") flag.BoolVar(&printVersion, "version", false, "print version and exit.") - flag.Parse() } func main() { + flag.Parse() if printVersion { Version()