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
It looks like envvars in mutuallyExclusiveOptions do not work in 3.5.0
3.5.0
class SomeTool: NoOpCliktCommand() { val password by mutuallyExclusiveOptions( option("--password-file", envvar = "PASSWORD_FILE").file().convert { it.readText() }, option("--password", envvar = "PASSWORD"), ) } class Issue { @Test fun mutuallyExclusiveOptionsWithEnvVars() { val envvars = mapOf("PASSWORD" to "secret") val tool = SomeTool().context { envvarReader = { envvars[it] } } tool.parse(emptyList()) assertEquals("secret", tool.password) } }
org.opentest4j.AssertionFailedError: Expected :secret Actual :null
It works fine with 3.4.2
3.4.2
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It looks like envvars in mutuallyExclusiveOptions do not work in
3.5.0
It works fine with
3.4.2
The text was updated successfully, but these errors were encountered: