aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index b132ba8..e782051 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,7 @@ func usage() {
os.Exit(2)
}
-var modes = map[string]func() error{
+var modes = map[string]func([]string) error{
"-C": check,
"-G": generate,
"-S": sign,
@@ -29,7 +29,7 @@ func main() {
if !ok {
usage()
}
- if err := mode(); err != nil {
+ if err := mode(os.Args[2:]); err != nil {
fmt.Println(err)
os.Exit(1)
}