Added -h as default short parameter for the automatic --help flag.

This commit is contained in:
Dima Kotik
2020-06-01 11:33:38 +03:00
committed by Alec Thomas
parent 7bdb319cf1
commit c77deac080
+1
View File
@@ -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.",