aboutsummaryrefslogtreecommitdiff
path: root/check.go
diff options
context:
space:
mode:
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
}