From 5da3d7f6a0bab74b229f24263b77b9426ca60b5f Mon Sep 17 00:00:00 2001 From: Grégoire Détrez Date: Wed, 18 May 2022 15:57:42 +0200 Subject: Make sigsum-debug print help if subcommand is omitted Issue #52 --- cmd/sigsum-debug/head/head.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/sigsum-debug/head') diff --git a/cmd/sigsum-debug/head/head.go b/cmd/sigsum-debug/head/head.go index b1b3044..22b857b 100644 --- a/cmd/sigsum-debug/head/head.go +++ b/cmd/sigsum-debug/head/head.go @@ -42,7 +42,7 @@ func Main(args []string) error { err = checkOptions(opt.Name()) if err == nil { switch opt.Name() { - case "help": + case "help", "": opt.Usage() case "sign": err = sign.Main(opt.Args(), optPrivateKey, optKeyHash) -- cgit v1.2.3