From 6e46aa905ed7cf092452844a604b74f8c33faae7 Mon Sep 17 00:00:00 2001 From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de> Date: Tue, 28 Jun 2016 11:32:31 +0200 Subject: [PATCH] Added docu for option -C/--color. --- doc/tex/usage.tex | 2 ++ src/cdo.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/tex/usage.tex b/doc/tex/usage.tex index ced982ea8..c4da03327 100644 --- a/doc/tex/usage.tex +++ b/doc/tex/usage.tex @@ -35,6 +35,8 @@ The following options are available for all operators: \> to {\tt L}ittle or {\tt B}ig endian. \\ \makebox[1.5in][l]{\hspace*{1cm}\sl -\,-cmor} \> CMOR conform NetCDF output. \\ +\makebox[1.5in][l]{\hspace*{1cm}\sl -C, -\,-color} + \> Colorized output messages. \\ \makebox[1.5in][l]{\hspace*{1cm}\sl -f $<$format$>$} \> Set the output file format. The valid file formats are: \\ \> \parbox[r]{3in}{ diff --git a/src/cdo.c b/src/cdo.c index 3aeb82645..6fc669ca1 100644 --- a/src/cdo.c +++ b/src/cdo.c @@ -209,6 +209,7 @@ void cdo_usage(void) fprintf(stderr, " Set individual floating-point traps (DIVBYZERO, INEXACT, INVALID, OVERFLOW, UNDERFLOW, ALL_EXCEPT)\n"); } fprintf(stderr, " --cmor CMOR conform NetCDF output\n"); + fprintf(stderr, " -C, --color Colorized output messages\n"); fprintf(stderr, " -f, --format <format>\n"); fprintf(stderr, " Format of the output file. (grb/grb2/nc/nc2/nc4/nc4c/srv/ext/ieg)\n"); fprintf(stderr, " -g <grid> Set default grid name or file. Available grids: \n"); @@ -1094,6 +1095,7 @@ int parse_options_long(int argc, char *argv[]) { "rusage", no_argument, &CDO_Rusage, 1 }, { "operators", no_argument, &lprintoperators, 1 }, { "no_warnings", no_argument, &_Verbose, 0 }, + { "color", no_argument, NULL, 'C' }, { "format", required_argument, NULL, 'f' }, { "help", no_argument, NULL, 'h' }, { "history", no_argument, &CDO_Append_History, 0 }, -- GitLab