From 4b7ed3d169dd0b4ce40f2a17cc049c055d5ba7a3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 17 Jul 2017 13:08:48 +0200 Subject: Rollback flags --- check.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'check.go') diff --git a/check.go b/check.go index 1ae36f5..78c1e66 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