ECC-657: -p will not print the keys (no need to add -v)

This commit is contained in:
Shahram Najm 2018-03-21 18:46:11 +00:00
parent 5c0e660c27
commit 4ea5400426
2 changed files with 12 additions and 0 deletions

View File

@ -71,6 +71,12 @@ int grib_tool_init(grib_runtime_options* options)
} }
} }
#endif #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; return 0;
} }

View File

@ -75,6 +75,12 @@ int grib_tool_init(grib_runtime_options* options)
} }
} }
#endif #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; return 0;
} }