diff options
author | Grégoire Détrez <gregoire@mullvad.net> | 2022-05-18 15:57:42 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-05-18 20:35:00 +0200 |
commit | 5da3d7f6a0bab74b229f24263b77b9426ca60b5f (patch) | |
tree | 7edad6aa985e8786144c40a9bc5696f04188781b /cmd/sigsum-debug/main.go | |
parent | f3e418081703081d984e48e3ad2a7e98a6206bde (diff) |
Make sigsum-debug print help if subcommand is omitted
Issue #52
Diffstat (limited to 'cmd/sigsum-debug/main.go')
-rw-r--r-- | cmd/sigsum-debug/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/sigsum-debug/main.go b/cmd/sigsum-debug/main.go index 7a1c894..2c10be2 100644 --- a/cmd/sigsum-debug/main.go +++ b/cmd/sigsum-debug/main.go @@ -41,7 +41,7 @@ func main() { log.SetFlags(0) opt := options.New(os.Args[1:], func() { log.Printf(usage[1:]) }, func(_ *flag.FlagSet) {}) switch opt.Name() { - case "help": + case "help", "": opt.Usage() case "key": err = key.Main(opt.Args()) |