aboutsummaryrefslogtreecommitdiff
path: root/check.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-07-11 00:52:04 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-07-11 00:52:04 +0200
commit3ba60991b15533189de30753a438342c9ae247ba (patch)
tree5e650b6fd4adbe73b2c8a84ddbdc09ffcebbb081 /check.go
parent7891501b5e373fe00d1ba5556473a866ae15979e (diff)
Dereference
Diffstat (limited to 'check.go')
-rw-r--r--check.go8
1 files changed, 4 insertions, 4 deletions
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
}