diff --git a/tools/bufr_copy.c b/tools/bufr_copy.c index 45f639f50..80a633d53 100644 --- a/tools/bufr_copy.c +++ b/tools/bufr_copy.c @@ -71,6 +71,12 @@ int grib_tool_init(grib_runtime_options* options) } } #endif + /* ECC-657: If user supplied -p to print some keys, turn on verbose */ + if (grib_options_on("p:")) { + if (grib_options_get_option("p:")) { + options->verbose = 1; + } + } return 0; } diff --git a/tools/grib_copy.c b/tools/grib_copy.c index 61d217653..85465857a 100644 --- a/tools/grib_copy.c +++ b/tools/grib_copy.c @@ -75,6 +75,12 @@ int grib_tool_init(grib_runtime_options* options) } } #endif + /* ECC-657: If user supplied -p to print some keys, turn on verbose */ + if (grib_options_on("p:")) { + if (grib_options_get_option("p:")) { + options->verbose = 1; + } + } return 0; }