Skip to content

${default} not interpolated into help if using vars #337

@mitar

Description

@mitar
type cli struct {
  Config string `type:"path" default:"${config_file}" help:"Default: ${default}"`
}

func main() {
  kong.Parse(&cli,
    kong.Vars{
      "config_file": "~/.app.conf",
    })
}

This prints in help Default: ${config_file} and not Default: ~/.app.conf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions