aboutsummaryrefslogtreecommitdiff
path: root/check.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-07-17 13:08:48 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-07-17 13:08:48 +0200
commit4b7ed3d169dd0b4ce40f2a17cc049c055d5ba7a3 (patch)
tree92c7de0d9d20155078d38d129940944b23dd82fe /check.go
parent0984f30f10b5caaa54e3047aa99194478fb20a90 (diff)
Rollback flags
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 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
}