Ensure flag is not blank
This commit is contained in:
parent
f8bb66ae7d
commit
fa858dcc26
@ -325,7 +325,7 @@ func checkRequiredFlags(flags []Flag, context *Context) requiredFlagsErr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !flagPresent {
|
if !flagPresent && flagName != "" {
|
||||||
missingFlags = append(missingFlags, flagName)
|
missingFlags = append(missingFlags, flagName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user