You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Rust 1.74, cargo colorizes outputs of help document. However the colors cannot be disabled by --color never argument nor CARGO_TERM_COLOR=never environment variable.
Steps
Run cargo --help --color never
Run CARGO_TERM_COLOR=never cargo --help
Possible Solution(s)
Respect the command line option and the environment variable. When they are set never stop colorizing help outputs.
Notes
Current workaround is NO_COLOR=1 cargo but this disables colors globally.
Version
cargo 1.74.0 (ecb9851af 2023-10-18)
release: 1.74.0
commit-hash: ecb9851afd3095e988daaa35a48bc7f3cb748e04
commit-date: 2023-10-18
host: x86_64-apple-darwin
libgit2: 1.7.1 (sys:0.18.0 vendored)
libcurl: 8.1.2 (sys:0.4.68+curl-8.4.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1u 30 May 2023
os: Mac OS 13.6.0 [64-bit]
The text was updated successfully, but these errors were encountered:
Problem
From Rust 1.74,
cargo
colorizes outputs of help document. However the colors cannot be disabled by--color never
argument norCARGO_TERM_COLOR=never
environment variable.Steps
cargo --help --color never
CARGO_TERM_COLOR=never cargo --help
Possible Solution(s)
Respect the command line option and the environment variable. When they are set
never
stop colorizing help outputs.Notes
Current workaround is
NO_COLOR=1 cargo
but this disables colors globally.Version
The text was updated successfully, but these errors were encountered: