New issue
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
can I remove default text when a flag's value is set #1277
Comments
It seems that when I set a flag's value, the help info will show a default text , even if I do not try to set a default text hint. |
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
I have a similar issue I'm not sure how to handle. If I set an env var for a flag, say for a sensitive value like an api token, I don't want the help outputing that token as a "default" value if it's set in the environment at the time. How do I use the |
@Toady00 One thing I found you can do is set |
@valorl's suggestion isn't working for me with a
|
@lorensr Can you check if this problem exists with latest release as well ? We've made some changes to default handling |
@dearchap I'm getting the same behavior on latest |
@lorensr can you post a code snippet ? |
Setting
Diff: temporalio/cli@main...repro-1277 |
Can you set DefaultText to " " or a non empty string? |
Here is
|
Okay I see the issue now. So would you like to hide the default text only for bool flags or for all flags ? |
Only for these two flags:
and not for other bool flags or flags of other types. |
@lorensr Can you try the PR and see if it works for you ? Thanks |
@dearchap I'm on
|
No description provided.
The text was updated successfully, but these errors were encountered: