Improved usage info

This commit is contained in:
Shahram Najm 2023-06-02 12:11:34 +01:00
parent 7b62c6f7fe
commit 7ebcceea39
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}