Using the app help <subcommand>
doesn't show the default values for flags
#1808
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
status/waiting-for-response
Waiting for response from original requester
My urfave/cli version is
v2.25.7
Checklist
Dependency Management
Describe the bug
When a command's flags have their
Value
set,app help <subcommand>
doesn't show those default values, whileapp <subcommand> --help
works correctly.To reproduce
app help <command>
to produce a help output.Observed behavior
app help <command>
shows zero values for the flags.Expected behavior
app help <command>
must show the default values set for those flags.Additional context
I have created a sample program on Go playground.
These are the outputs that I get when generating help:
Want to fix this yourself?
We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, feel free to create a
pull request for it.
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: