Clarify that `DO_NOT_TRACK` only disables telemetry if `1` or `true`
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/github-cli/github-cli/github-cli-telemetry#how-to-opt-out
What part(s) of the article would you like to see updated?
The section on environment variables currently looks like this:
Environment variables:
export GH_TELEMETRY=falseAny falsy value works:
0,false,disabled, or an empty string. You can also use theDO_NOT_TRACKconvention:export DO_NOT_TRACK=true
Saying that any falsy value works for GH_TELEMETRY right before introducing DO_NOT_TRACK can create the implication that any truthy value would be accepted for DO_NOT_TRACK. I believe this is not the case though; it looks like DO_NOT_TRACK must be 1 or true. It would be nice to clarify this.
It also seems like most people set DO_NOT_TRACK to 1 anyway, so it would be good to be explicit for the opposite reason too; we don't want people to assume that only true is accepted.
Additional information
No response
Source: github/docs