diff options
| author | Alex Flint <[email protected]> | 2024-09-05 17:20:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-05 17:20:09 -0400 |
| commit | d10a064207fecad73eb3a19b93fead8d566bf1e1 (patch) | |
| tree | 7589226a8c8757df37b97336d5e2628c32e7bb3a /usage.go | |
| parent | a5045bbe852cb542c8fab73aada516dbb32c7f2e (diff) | |
| parent | bf156d17a378826a4832340c79f07aab30578fa8 (diff) | |
Merge pull request #262 from hhromic/fix-261
Fix help text for positional args with default and env var
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -243,7 +243,7 @@ func (p *Parser) WriteHelpForSubcommand(w io.Writer, subcommand ...string) error if len(positionals) > 0 { fmt.Fprint(w, "\nPositional arguments:\n") for _, spec := range positionals { - print(w, spec.placeholder, spec.help) + print(w, spec.placeholder, spec.help, withDefault(spec.defaultString), withEnv(spec.env)) } } |
