ECC-401: enable -B option

This commit is contained in:
Shahram Najm 2019-08-29 11:43:18 +01:00
parent 34a5134268
commit bd51d020da
2 changed files with 4 additions and 8 deletions

View File

@ -89,12 +89,6 @@ int grib_tool_init(grib_runtime_options* options)
json_latlon=1;
}
/* TODO: sort when JSON is on */
if (grib_options_on("j") && grib_options_on("B:")) {
fprintf(stderr, "Error: -j and -B options are incompatible\n");
exit(1);
}
if (options->latlon) {
lat = strtod(options->latlon,&theEnd);

View File

@ -186,7 +186,6 @@ int grib_tool(int argc, char **argv)
if (global_options.dump_filename) fclose(dump_file);
return ret;
}
static int grib_tool_with_orderby(grib_runtime_options* options)
@ -249,7 +248,10 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
continue;
}
grib_print_header(options,h);
if (options->json_output == 0)
grib_print_header(options,h);
else
grib_tools_set_print_keys(options,h,options->name_space);
grib_skip_check(options,h);