print defaults when no args are given

This commit is contained in:
Aaron Bieber 2021-01-13 07:41:25 -07:00
parent 2229f09778
commit 513c739348
1 changed files with 5 additions and 0 deletions

View File

@ -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")