From c77deac080b5dd847a46540a186ea923b68b276a Mon Sep 17 00:00:00 2001 From: Dima Kotik Date: Mon, 1 Jun 2020 11:33:38 +0300 Subject: [PATCH] Added -h as default short parameter for the automatic --help flag. --- kong.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kong.go b/kong.go index a17a2f0..3e09f47 100644 --- a/kong.go +++ b/kong.go @@ -171,6 +171,7 @@ func (k *Kong) extraFlags() []*Flag { var helpTarget helpValue value := reflect.ValueOf(&helpTarget).Elem() helpFlag := &Flag{ + Short: 'h', Value: &Value{ Name: "help", Help: "Show context-sensitive help.",