Required flags still show (default: ...) value #1544
Labels
area/flags-args
Changes to functionality around command line flags and args
kind/feature
A feature request for cobra; new or enhanced behavior
lifecycle/needs-pr
Ready for a PR from the community
If you mark a flag as required using
MarkFlagRequired
then it doesn't have a default value, per se: it will always be present on the command line.However, the help message still shows
(default: ...)
for that flag.Is there any way to remove that part of the help message?
The text was updated successfully, but these errors were encountered: