We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
${default}
help
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.
Default: ${config_file}
Default: ~/.app.conf
The text was updated successfully, but these errors were encountered:
default
I think what will need to happen is that Kong should iteratively resolve variables until none remain unresolved.
Sorry, something went wrong.
Or just first interpolate default, and then interpolate help?
That won't solve interpolation ordering issues on other fields. For example, enum would have the same issue.
enum
No branches or pull requests
This prints in help
Default: ${config_file}
and notDefault: ~/.app.conf
.The text was updated successfully, but these errors were encountered: