With Makefile providing -DCONF_COLOR, we can use its value as the
default color output.
This effectively allow users and packagers to define a default for the
color output feature without using shell aliases, and with minimum code
impact.
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
int oneline;
int show_stats;
int show_details;
-static int color;
int compress_vlans;
int json;
int timestamp;
int
main(int argc, char **argv)
{
+ int color = CONF_COLOR;
+
while (argc > 1) {
const char *opt = argv[1];
const char *libbpf_version;
char *batch_file = NULL;
char *basename;
- int color = 0;
+ int color = CONF_COLOR;
/* to run vrf exec without root, capabilities might be set, drop them
* if not needed as the first thing.
int force;
bool use_names;
int json;
-int color;
int oneline;
int brief;
{
const char *libbpf_version;
char *batch_file = NULL;
+ int color = CONF_COLOR;
int ret;
while (argc > 1) {