mirror of https://github.com/ecmwf/eccodes.git
ECC-657: -p will not print the keys (no need to add -v)
This commit is contained in:
parent
5c0e660c27
commit
4ea5400426
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue