X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-config.c;fp=src%2Fafb-config.c;h=fcc69a418c0f9ad1383a49b144c28105c1342a3f;hb=dfe85ca516c207eadc4ae77066c6706f17068f20;hp=669bbc570da6174a75d7c17d92387d480f84ed19;hpb=61a01510306f60422df3cd3e67513d3c7b585524;p=src%2Fapp-framework-binder.git diff --git a/src/afb-config.c b/src/afb-config.c index 669bbc57..fcc69a41 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -107,9 +107,8 @@ #define SET_TRACEDITF 25 #define SET_TRACESVC 26 #endif - -#define SET_TRAP_FAULTS 27 - +#define SET_TRAP_FAULTS 27 +#define ADD_CALL 28 #if defined(WITH_DBUS_TRANSPARENCY) # define ADD_DBUS_CLIENT 30 # define ADD_DBUS_SERVICE 31 @@ -118,7 +117,7 @@ #define ADD_AUTO_API 'A' #define ADD_BINDING 'b' #define SET_CONFIG 'C' -#define ADD_CALL 'c' +#define SET_COLOR 'c' #define SET_DAEMON 'D' #define SET_EXEC 'e' #define GET_HELP 'h' @@ -151,6 +150,7 @@ struct option_desc { static struct option_desc optdefs[] = { /* *INDENT-OFF* */ {SET_VERBOSE, 0, "verbose", "Verbose Mode, repeat to increase verbosity"}, + {SET_COLOR, 0, "color", "Colorize the ouput"}, {SET_QUIET, 0, "quiet", "Quiet Mode, repeat to decrease verbosity"}, {SET_LOG, 1, "log", "Tune log level"}, @@ -756,6 +756,10 @@ static void parse_arguments_inner(int argc, char **argv, struct json_object *con verbose_inc(); break; + case SET_COLOR: + verbose_colorize(); + break; + case SET_QUIET: verbose_dec(); break;