pw-dump: respect NO_COLOR

See no-color.org
This commit is contained in:
Wim Taymans 2021-03-13 20:30:13 +01:00
parent c6aa48548e
commit 4873dbcf8e

View file

@ -1378,7 +1378,8 @@ int main(int argc, char *argv[])
pw_init(&argc, &argv);
data.out = stdout;
colors = true;
if (getenv("NO_COLOR") == NULL)
colors = true;
while ((c = getopt_long(argc, argv, "hVr:mN", long_options, NULL)) != -1) {
switch (c) {