From 7ebcceea398fa6d5b9667df69d3a6d9d4166a139 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 2 Jun 2023 12:11:34 +0100 Subject: [PATCH] Improved usage info --- tools/codes_export_resource.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/codes_export_resource.cc b/tools/codes_export_resource.cc index 1511ae762..400373d83 100644 --- a/tools/codes_export_resource.cc +++ b/tools/codes_export_resource.cc @@ -20,6 +20,10 @@ typedef enum ResourceType static void usage(const char* prog) { printf("Usage: %s [-s | -d] resource_path out_file\n", prog); + printf(" -s Extract a resource from the samples directory\n"); + printf(" -d Extract a resource from the definitions directory\n"); + printf("\n"); + printf(" E.g., %s -s GRIB2.tmpl my.grib2\n", prog); exit(1); }