From 513c739348852eae4a7b930be649bfce1731a2b0 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 13 Jan 2021 07:41:25 -0700 Subject: [PATCH] print defaults when no args are given --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index f3d902f..cb39d91 100644 --- a/main.go +++ b/main.go @@ -41,6 +41,11 @@ func main() { flag.StringVar(&flags.pub, "pub", "", "path to pubkey file") flag.Parse() + if len(os.Args) == 1 { + flag.PrintDefaults() + os.Exit(1) + } + _ = protect.Unveil(flags.sig, "r") _ = protect.Unveil(flags.file, "r") _ = protect.Unveil(flags.pub, "r")