From 3ba60991b15533189de30753a438342c9ae247ba Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 11 Jul 2017 00:52:04 +0200 Subject: Dereference --- check.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'check.go') diff --git a/check.go b/check.go index 78c1e66..1ae36f5 100644 --- a/check.go +++ b/check.go @@ -10,12 +10,12 @@ import ( func check(args []string) error { opts := flag.NewFlagSet("check", flag.ExitOnError) var ( - quiet = opts.Bool("q", false, "Quiet mode") - pubFile = opts.String("p", "", "Public key file (required)") - sigFile = opts.String("x", "", "Signature file (required)") + quiet = *opts.Bool("q", false, "Quiet mode") + pubFile = *opts.String("p", "", "Public key file (required)") + sigFile = *opts.String("x", "", "Signature file (required)") ) opts.Parse(args) - if *pubFile == "" || *sigFile == "" { + if pubFile == "" || sigFile == "" { opts.Usage() return nil } -- cgit v1.2.3