aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-05-04 16:48:53 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-05-04 16:48:53 +0200
commit4a7233c2ee6c6d586f3523cdeab43747750833cb (patch)
tree4b401d1814ece0ff9764685704511eff1aec5793 /main.go
parent7e2b496200d8281f28bb12997d9f8223d25fcb40 (diff)
pass args
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)
}