feat: add IgnoreDefault optional interface

This commit is contained in:
Alec Thomas
2025-02-26 14:37:56 +11:00
parent 300cba8c27
commit 0c495e4936
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ func (k *Kong) extraFlags() []*Flag {
if k.noDefaultHelp {
return nil
}
var helpTarget helpValue
var helpTarget helpFlag
value := reflect.ValueOf(&helpTarget).Elem()
helpFlag := &Flag{
Short: 'h',