aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum-debug/leaf
diff options
context:
space:
mode:
authorGrégoire Détrez <gregoire@mullvad.net>2022-05-18 15:57:42 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-05-18 20:35:00 +0200
commit5da3d7f6a0bab74b229f24263b77b9426ca60b5f (patch)
tree7edad6aa985e8786144c40a9bc5696f04188781b /cmd/sigsum-debug/leaf
parentf3e418081703081d984e48e3ad2a7e98a6206bde (diff)
Make sigsum-debug print help if subcommand is omitted
Issue #52
Diffstat (limited to 'cmd/sigsum-debug/leaf')
-rw-r--r--cmd/sigsum-debug/leaf/leaf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/sigsum-debug/leaf/leaf.go b/cmd/sigsum-debug/leaf/leaf.go
index 97de37e..c14e6aa 100644
--- a/cmd/sigsum-debug/leaf/leaf.go
+++ b/cmd/sigsum-debug/leaf/leaf.go
@@ -46,7 +46,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, optShardHint)